CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.

YesSoftware Forums -> Archive -> GotoCode Archive

 Disable update or edit based on status help

Print topic Send  topic

Author Message
Posted: 12/07/2003, 10:42 PM

I am enhancing the task manager module. I have one problem. User logs in he can either add a task or edit a task. Both use the same form incase of edit the variables get passed to the next form with some editable fields. Now if the status is closed I need to make this record uneditable and read only. I am using CC 2.x (not CCS) and ASP + templates.

Appreciate your help
Posted: 12/08/2003, 12:38 AM

Managed it, but I guess someone can suggest a better way of doing it. Any here's what I did :-
In the form before show event I wrote the following code

if fldstatus_id = "Closed" then
fldassigned_to_URLLink = "firstpage.asp"
fldassigned_to_URLLink = "secondpage.asp"
end if

Here assigned_to is linked to another table called employees showing employee name

Added a page called "secondpage.asp" - a clone of the firstpage and changed the field from textboxes to label. Then in the html code of the secondpage.html disabled the update button. Worked fine!


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.

Home   |    Search   |    Members   |    Register   |    Login

Powered by UltraApps Forum created with CodeCharge Studio
Copyright 2003-2004 by  and YesSoftware, Inc.