Defining Default Values for Variables to Allow Overwriting
Use
Using variables, you can define a query in such a way that when users execute the query, they can specify at runtime with which value or values the query is to be started.
This allows you to change the default values for variables in the executed query and override the variable entry using the dynamic filter (input help dialog). After you execute the query, you can then not only select from the values you entered on the variable screen but you can also use other values as dynamic filters for the query.
Procedure
- When you define a query in the Query Designer, use drag and drop to drag a characteristic value variable, hierarchy variable, or hierarchy node variable from the InfoProvider screen area to the Default Values area to the right in the Filter screen area.
Alternatively, you can also drag a characteristic from the InfoProvider screen area to the Default Values screen area to the right in the Filter screen area and then restrict the characteristic to one variable.Select the characteristic and in the context menu, choose Restrict.
More information:Restricting Characteristics
- Continue defining the query as required.
More information:Defining New Queries
- Save the query.
Result
When users execute the query, they can specify on the variable screen with which value or values the query is to be started. If, while analyzing the data, users want to view other data from the query, they can change the values selected on the variable screen:
- Users call the variable screen (for example, by choosing the corresponding pushbutton in the BEx Web Analyzer) and select one or more other values.
- Users call the input help dialog (for example, by choosing Change Filter Values in the context menu or in the filter pane) and select one or more other values.
Values that are not within the value range for variable entry are also available for selection in the input help dialog. The values entered for the variables are only used to parameterize the dynamic filter for the start list.