As of SWAT 20.8 we support hiding tabbar pages using visibility rules.
This is done by using the 'SecurityToken' property on the page, in the layout designer.
There currently are 2 types of visibility rules:
These visibility rules are specified using the following format:
restrict:customization:<can-do list of restricted customizations>
The customization is an application setting, which is accessible from the 'Customization' session property.
It allows designers an easy way to add customized handling to their code.
The provided list of customizations is handled like any other OpenEdge CAN-DO list.
Examples:
These visibility rules are specified using one of the following two formats:
The tokens are part of SCL security and can be assigned to users or user groups.
It allows designers to customize the application depending on the user.
The provided list of tokens is checked for any restricted tokens, and also includes CAN-DO function support.
If at least one of them is restricted, the tab will be hidden.
Examples:
restrict:token:Token1,Token2 |
{ "NotRestricted": "Token1,Token2" } |
Will be displayed only if Token1 and Token2 are not restricted for the current user.