A common scenario in a virtual silo is to place an icon decorator on a flag and vary the icon depending on the flag value. For example, an active user might have a check mark, and disabled user might have a flag icon.
Simple Boolean
- Attribute: User Disabled
- Value:
Attributes.userAccountControl
- Replace Decorator Icon Rule:
If(BitAnd(Attributes.userAccountControl, special.AD.ACCOUNTDISABLE), "check-circle", "")
- Tooltip Rule:
If(BitAnd(Attributes.userAccountControl, special.AD.ACCOUNTDISABLE), "Disabled", "Enabled")
Switch Statement
- Value:
Attributes.employeeStatus
- Before Icon Rule:
Switch(LowerCase(Attributes.employeeStatus) == "active", "check-circle", LowerCase(Attributes.employeeStatus) == "disabled", "cancel", LowerCase(Attributes.employeeStatus) == "deleted", "delete-circle", "help-circle")
Comments
0 comments
Please sign in to leave a comment.