How to lock dataset/fields with Button?
Hello,
I am filling the detail in the dataset like Name, Address and many more. At anyhow, I don't want to lose this detail. Can we set any button or something's to lock the dataset?
For example : Suppose if I click "Yes" to the button then I can edit and if I click "No" to the button then no one can edit.
Kind Regards
4 replies
-
I got my answer. I just used "writable if" and set "edit button := true".
-
Hi Deepak
If you use the above code, once set you will disable editing for everyone, forever. The only way out will be to hit the spanner ane remove the code. Include a way to allow an admin to undo this setting, eg in "Writable if;" use this code
userRole() = "admin" or 'edit button' = true
Just noticed the colon in your code, which you don't want. := sets a value where = tests a condition.
Regards John
-
Hey John,
thanks for helping.
Kind Regards
-
Deepak
if you want - instead of a button you can use a text/number field eg 'Lock'
then in the writable if section have ..... Lock = 1234 or UL1234 or what ever code you want.
I do this where info is a definate staff team must not see
as a previous update went on to ignore users rights levels
Mel
Content aside
- 3 yrs agoLast active
- 4Replies
- 324Views