Show TOC

 Set Variable ValuesLocate this document in the navigation structure

Use

Using the Set Variable Values command (SET_VARIABLES_STATE), you can set variable values at the runtime for a Web application.

Command Parameters

The following information lists the command parameters in the same sequence that they appear in the command wizard when you insert the command:

Parameter Description

Variable Screen (VARIABLE_SCREEN)

You use this parameter to specify whether the variable screen is to be displayed. If you do not specify a value, the variable screen is displayed only if mandatory variables are not filled.

Variant (VARIABLE_VARIANT)

You use this parameter to enter a variant. You can start a Web application by using a variant or you can fill the variable screen with the values from the variant. More information: Creating Query Variants .

Variable Value (VARIABLE_VALUES)

You use this parameter to enter a list of individual variables. You need to set the following parameters for each entry in the list:

Variable (VARIABLE)

Variable Type (VARIABLE_TYPE)

You can choose from the following variable types:

Input String for Variable (VARIABLE_INPUT_STRING)

Characteristic Value Variable (INFO_OBJECT_MEMBER_VARIABLE) Hierarchy Variable (HIERARCHY_VARIABLE)

Value Set Variable (VALUE_SET_VARIABLE)

Text Variable (TEXT_VARIABLE)

Formula Variable (FORMULAR_VARIABLE)

Binding Type (SELECTION_BINDING_TYPE)

Web Item with Manual Input (ITEM_INPUT)

Depending on the variable type you select, you must set additional parameters. See the information and tables below.

If you select Input String for Variable(VARIABLE_INPUT_STRING) as the variable type, you need to set the following parameters:

Parameter Description

Input String for Variable (VARIABLE_INPUT_STRING)

You use the text input dialog to enter the value of the variable here.

If you select Characteristic Value Variable (INFO_OBJECT_MEMBER_VARIABLE) as the variable type, you need to set the following parameters:

Parameter Description

Selection (SELECTION)

You use this parameter to specify the selection type. You can choose from the following options:

Input String for Filter Value

(SELECTION_INPUT_STRING)

Single Member(SINGLE_MEMBER_SELECTION)

Interval Selection(INTERVAL_SELECTION)

Range Selection(RANGE_SELECTION)

Hierarchy Level (HIERARCHY_LEVEL_SELECTION)

For more information about setting the parameters for the individual selection types, see Set Filter Values .

If you select Hierarchy Variable (HIERARCHY_VARIABLE) as the variable type, you need to set the following parameters:

Parameter Description

Hierarchy Variable (HIERARCHY_VARIABLE)

You enter the value of the hierarchy variable here.

If you select Value Set Variable(VALUE_SET_VARIABLE) as the variable type, you need to set the following parameters:

Parameter Description

Value Set Variable (VALUE_SET_VARIABLE)

You enter the value set that was precalculated for the characteristic of the variable or for its basic characteristic.

If you select Text Variable(TEXT_VARIABLE) as the variable type, you need to set the following parameters:

Parameter Description

Text Variable (TEXT_VARIABLE)

Using the text input dialog, you enter the text for the text variable.

If you select Formula Variable(FORMULAR_VARIABLE) as the variable type, you need to set the following parameters:

Parameter Description

Formula Variable (FORMULAR_VARIABLE)

You enter the value of the formula variable here.

If you select Binding Type(SELECTION_BINDING_TYPE) as the variable type, you need to set the following parameters:

Parameter Description

Binding Type (SELECTION_BINDING_TYPE)

You use this parameter to select the source on which the variable values are to be based. You can choose from the following options:

More information: Set Filter Values Using Different Sources .

If you select Web Item with Manual Input (ITEM_INPUT) as the variable type, you need to set the following parameters:

Parameter Description

Web Item (ITEM_REF)

You use this parameter to specify the Input Field Web item that is to enable manual input of filter values. More information: Input Field .

Example

You can find more an example of the Set Variable Values command (SET_VARIABLES_STATE) under Using Parameters to Call Web Applications .