The following is from the ITPAM r2.2 User Guide:
Optionally, you can select the Expression check box to specify a ValueMap or indexed list that defines the Key/Values pairs. In the Expression box, specify an expression that returns any of the following in a Dataset:
■ A ValueMap with two indexed fields of simple types
The index fields must be named "Keys" and "Values".
■ A ValueMap with field names representing keys.
The values assigned to the fields represent the values. Only simple field-types are selected. Other types are ignored.
■ An array of ValueMaps (an indexed ValueMap).
The ValueMaps each have two fields: "Key" and "Value". Both fields must be simple types.
■ A single array of simple values
The values are used for both the key and value.
I have tried all four and my drop-down is still not filling with values. Has anyone succeeded using the Expression field for this purpose? Can you provide an example of what you put in the Expression field or what your valuemap looks like.
Additionally, I would like to load the drop-down with dynamic values. I'm sensing this is not possible. Anyone know if it is?
Thanks!
Optionally, you can select the Expression check box to specify a ValueMap or indexed list that defines the Key/Values pairs. In the Expression box, specify an expression that returns any of the following in a Dataset:
■ A ValueMap with two indexed fields of simple types
The index fields must be named "Keys" and "Values".
■ A ValueMap with field names representing keys.
The values assigned to the fields represent the values. Only simple field-types are selected. Other types are ignored.
■ An array of ValueMaps (an indexed ValueMap).
The ValueMaps each have two fields: "Key" and "Value". Both fields must be simple types.
■ A single array of simple values
The values are used for both the key and value.
I have tried all four and my drop-down is still not filling with values. Has anyone succeeded using the Expression field for this purpose? Can you provide an example of what you put in the Expression field or what your valuemap looks like.
Additionally, I would like to load the drop-down with dynamic values. I'm sensing this is not possible. Anyone know if it is?
Thanks!
Create two parameters in the form for this purpose say var_0 and var_1. Var_0 be of the type valuemap to which you can pass the values i.e. list of resources in your case(through “form data initializing code” in user prompt tab within operator properties). And var_1 will be of type strings with “predefined values” checked. For var_1 choose “expression” option where you provide the first parameter var_0 in that expression field. This will get you the dropdown list with the values collected during the process execution.
The down side to this is that user will see both var_0 and var_1 in the form when he opens to complete the task. With ITPAM r3.0 we have added the ability to hide variables in the form allowing you to hide the var_0 allowing user to just see the drop down list.
let us know if this helped resolve your problem.
Avinash