How to use Rules

More examples of using rules

Condition rule for action buttons

If you need to conditionally display an action button for individual data records, for example, you can use an entity rule.

Here is an example in XPath using two custom XSLT functions (ActiveProfileId and GetConstant) that applies only to the current data record — row — whether in grid or form view in the client application:

row/@refAssignedToId=AS:ActiveProfileId() and row/@refTaskStatusId != AS:GetConstant('TaskStatus_Done')

This specific example displays the action button only if the current record is assigned to the currently logged-in user and at the same time the status is not equal (!=) to the “Done” state defined in a constant.