knick
|
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
|
|
|
knick
|
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"
else
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!
|
|
|
|