jkovar
Posts: 2
|
| Posted: 01/14/2006, 7:42 AM |
|
Can CCS support field level access control.
I need my users to see all the fields on the form but limit access to edit certain fields to authorized security level.
For example, all users can see a task and date completed but the date completed can only be updated by the user assigned to that task.
I am developing a web database application and I am comparing different tools and was wondering of CCS could handle this task (without too much custom coding).
Thanks in advance for responses.
|
 |
 |
peterr
Posts: 5971
|
| Posted: 01/14/2006, 2:33 PM |
|
Yes, you can usually hide a field based on security level with one line of code, maybe depending on the programming language.
You can also have 2 fields on a page, updateable and not updateable, then hide the one you don't want to show.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
Benjamin Krajmalnik
|
| Posted: 01/16/2006, 12:11 PM |
|
Peter,
Only caveat I have experienced is that if you hide an entry/text control, if
it is an update form and you submit it you lose the value.
The solution in these situations is to create sessio variables which store
the values in the "BeforeShow" event, and restore in the "Validate" event if
the values are missing.
|
|
|
 |
peterr
Posts: 5971
|
| Posted: 01/16/2006, 12:59 PM |
|
Oops, I forgot about this. This would add a few more lines of code to the above logic.
Other solutions may also include looking up the previous value using the CCDLookUp function, or creating 2 similar forms where each one is displayed to different user levels. The last one doesn't require any programming, but can be more messy if there is other logic that has to be maintained for both forms.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
 |
 |
|