|Enable / disable controls / forms [message #1064654]
||Thu, 20 June 2013 08:29
| Bertin Kiekebosch
Registered: August 2011
in my app I have many forms to edit data and many processServices to execute the actions, the data is stored across many tables. The users are allowed to edit this data. At some moment in time some action is made upon this data that it is, because of some business rules, no longer allowed to change the data anymore.
This is easy to do in my process service by just checking the data and give some VetoException, but this is OK for business rules but not for the user because he can change the data on the form and gets an error afterwards.
What I want is to disable the controls on the forms as soon as it is not allowed to change the data anymore. Is there a way to do this easy in Scout.
With easy I mean, for example, as soon as a user does not have the permission (authorization) to change the data, all controls are automatically disabled so the user directly sees that he cannot change the data.
Powered by FUDForum
. Page generated in 0.02726 seconds