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:
- based on customization
- based on security tokens
Customization 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:
- restrict:customization:CUST1
Will hide the page for customizations CUST1 - restrict:customization:!CUST1,*
Will hide the page for all customizations, except for CUST1
Security token Visibility-Rules
These visibility rules are specified using the following format:
restrict:token:<list of tokens>
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.
If at least one of them is restricted, the tab will be hidden.
Example:
restrict:token:Token1,Token2
Will be displayed only if Token1 and Token2 are not restricted for the current user.