LabelList tag

A LabelList tag references a DataField and a DataCollection in the context hierarchy and creates text on the HTML page based on the value of the field and the collection.

Mandatory attributes: dataNameForList, dataName

Table 1. LabelListTag attributes
Attribute Description Default value
dataName

ForList
ID of the DataCollection.

If the DataCollection is a KeyedCollection, the toolkit looks for the inner data field containing the same value as the data field named dataName. The list label uses the inner data field's ID as the label.

If the DataCollection is an IndexedCollection, the inner elements must be KeyedCollections, and the item and value attributes are mandatory. The list label uses the collection field named in the item attribute as the option label and uses the collection field named in the value attribute as the option value.
 
dataName Name of the DataField in the Context hierarchy. If the DataField is read only, in Internet Explorer the combo box is also read only.  
item Collection field to use as the option label null
value Collection field to use as the option value null
fontColor Color of the text null
fontSize Size of the text null
fontFace Typeface of the text null
style Style for the label list null

The following is an example of using labelList tag:

<H1>Using the labelList tag</H1>
<table border="1">
<tr><th>Label Tag</th><th> LabelList Tag</th></tr>
<tr align="center"><td><dse:label dataName="selectedMaritalStatus1"/></td>
<td><dse:labelList dataName="selectedMaritalStatus1" 
    dataNameForList="availableMaritalStatus" fontColor="blue"/></td></tr>
<tr align="center"><td><dse:label dataName="selectedPreferredPhone"/></td>
<td><dse:labelList dataName="selectedPreferredPhone" dataNameForList="phonesList" 
    item="name" value="type" style="orangered"/></td></tr>
</table>