|
Property "Bind Options To" <bind> |
|
|
This property is used to retrieve the options of the Combo Box and List Box from XML nodes in the run time. Definition Syntax <For Each ...>,<value>,<option>,<sort>,<xslvars>,<selected-if> Parameters <value> and <option> should be specified relative to the node defined in <For Each ...>. <sort> is used to sort the option nodes returned with <For Each ...> query. The usage is the same as Repeat>Sort property of container elements except that the definition must be enclosed with "(" and ")" chars. Example: /products/item,ID,NAME,(NAME,a,,en)
<xslvars> is used to define one or more XSL variables in order to use in <value>, <option> and <selected-if> parameters. Example: /products/item,ID,NAME,,(pid:ID)
<selected-if> is only valid for ListBoxes with multiple selection and is used to define a test expression. The expression defined here will be tested for each option to determine if the option is initially selected. Example: /products/item,ID,NAME,,(pid:CODE),/selected-products/item[. = $pid]
Example 1: ComboBox XML:
Properties:
HTML Result:
Example 2: Sorted ComboBox XML:
Properties:
HTML Result:
Example 3: ListBox with Multiple Selection XML:
Properties:
HTML Result:
|