In this example from
the Sort Data task, the Value text box is
available only if you select B (bytes), KB
(kilobytes), MB (megabytes),
or GB (gigabytes) from the Memory
for sorting drop-down list. (In the Tasks section,
the Sort Data task is in the Data group.)
In this example, MEMSORT
is the name of the drop-down list that is created by the combobox
variable.
The MEMSORT option has these values: MSSD (Server default), MSMA (Maximum
allowed), MSB (B (bytes)), MSKB (KB (kilobytes)), MSMB (MB (megabytes)),
and MSGB (GB (gigabytes)). MEMAMT is the name of the validation text
box.
<Option name="MEMSORT" defaultValue="MSSD" inputType="combobox">
Memory for sorting:</Option>
<Option name="MSSD" inputType="string">Server default</Option>
<Option name="MSMA" inputType="string">Maximum available</Option>
<Option name="MSB" inputType="string">B (bytes)</Option>
<Option name="MSKB" inputType="string">KB (kilobytes)</Option>
<Option name="MSMB" inputType="string">MB (megabytes)</Option>
<Option name="MSGB" inputType="string">GB (gigabytes)</Option>
<Option name="MEMAMT" defaultValue="0" inputType="validationtext"
regExp="[0-9]*$" invalidMessage="Enter an integer value
greater than or equal to 0.">Value:</Option>
<Dependency condition="$MEMSORT.equalsIgnoreCase('MSB') ||
$MEMSORT.equalsIgnoreCase('MSKB') ||
$MEMSORT.equalsIgnoreCase('MSMB') ||
$MEMSORT.equalsIgnoreCase('MSGB') ||"/>
<Target conditionResult="true" option="MEMAMT" action="enable"/>
<Target conditionResult="false" option="MEMAMT" action="disable"/>
</Dependency>
By default, the Server
default option is selected, so the Value option
is not available. Here is the result that appears on the Options tab:
If you select the B
(bytes) option, the Value option
is available. Here is the result that appears on the Options tab: