Define a configured report

Configured reports for conditions can either be based on Alfabet query language or native SQL.

configured reports can be structured in folders. You can create a folder containing your configured reports for conditions only. Right-click the root node of the explorer in the Reports tab of Alfabet Expand, select Create New Folder and change the default name of the folder.

  1. In the Reports tab of Alfabet Expand, right-click the root node or the node of the report folder for condition reports and select Create New Report.
  2. Click the new report in the explorer and set the relevant attributes:
    • Name: Define a technical name for the report without whitespaces and special characters. The name of the report is used in the selector of the condition to identify the report.
    • Category: Select a category defined for the use case Condition in the XML element UseCaseCategories.
    • Type: Select NativeSQL.
    • Native SQL Query: Define a native SQL query which only returns a result if a specific condition is fulfilled. You can use Alfabet query parameters to refer to the current environment of the user, like the object the user is currently working with.

    This setting is for the definition of a configured report executing a native SQL query. If you would like to execute an Alfabet query, set the Type attribute to Query and define the Alfabet query in the Alfabet Query attribute.

  3. In the toolbar, click Save  Save_Expand.

The following native SQL query only returns a result if the current object is active. It can be used in conditions for configuration elements to show them either if the query returns a result or if the query does not return a result:

  • SELECT app.REFSTR, app.NAME, app.VERSION
  • FROM APPLICATION app
  • WHERE app.REFSTR = @BASE
  • AND app.OBJECTSTATE = 'Active'