We now support disabling forms using visibility rules.
This is done through the 'SecurityRestrictions' attribute on the form, and specified using the following format:
Code Block |
---|
|
{ "NotRestricted": "Token1,Token2" } |
The provided list of tokens, which are part of Security Restrictions, is checked for any restricted token.
If at least one of them is restricted, the form will be locked.
Code Block |
---|
|
{ "NotRestricted": "CanCreate" }
{ "NotRestricted": "CanDelete" }
{ "NotRestricted": "CanModify,CanSaveChanges" } |
Additionally, the provided list of tokens is handled like any other OpenEdge CAN-DO list. In the example below, if any token whose name begins with "Can" is found to be restricted, the form will be locked.
Code Block |
---|
|
{ "NotRestricted": "Can*" } |