Define a condition based on a query result
Conditions are based on a query. The query is executed at runtime and the dependent on the condition settings, the interface element the condition is assigned to is either displayed if the query returns results or if the query does not return results.
You must do the following to configure a visibility condition based on the result of a query:
- Define a category for the use case category definition in the XML object UseCaseCategories.
- Define a configured report of the type Query or NativeSQL for execution of your condition query and set the Category attribute of the report to the relevant category name specified for conditions in the XML object UseCaseCategories.
- Create the condition and define the attributes to use the configured report for evaluation of the condition as either fulfilled or not fulfilled.
- Assign the condition to configuration elements like buttons, content items, editor field, filter fields, or menu items.