Bret Griswold
|
| Posted: 05/02/2005, 10:32 AM |
|
How would I make a field readonly dynamically? For example, if a person does not have Admin rights based on CCSecurityAccessCheck(GroupId) - I want to make the DateCreated field read-only. Otherwise it should be editable.
I have tried to create a custom template variable based on this thread
http://forums.yessoftware.com/posts.php?post_id=57124&s_keyword=readonly
but was unable to make it work? Please advise. Thanks!
Using CodeCharge Studio 2.3 / ASP
|
|
|
 |
Nicole
Posts: 586
|
| Posted: 05/03/2005, 5:26 AM |
|
Bret,
Relevant ASP code would be
If condition_to_make_readonly then
HTMLTemplate.SetVar "@var_name", "readonly"
End if
BTW, it’d be good for you to read this knowledge base article, that provides basic knowledge on CCS template technology http://support.codecharge.com/kb_article.asp?article_id=56
_________________
Regards,
Nicole |
 |
 |
|