HOW-TO: Filter an Action based on a Data Attribute
HOW-TO: Filter an Action based on a Data Attribute
To allow filtering an action based on some data attribute, please follow the steps:
- Add a filter condition as an extra column to Data Query used in data view for the corresponding object.
Use Display = None to leave the column hidden in all cases but available in data view model. - Add a calculated property with the same name to the entity source data model of the preview widget template.
Provide the required validation expression in the property definition.
Both column and calculated property values must return true or 1 to show action and false or 0 to hide it. - Set Filtering JavaScript Expression for the action.
Make sure to replace 'UsageDetectionEnabled' with your validation property name.