ListEditor Configuration
The XML data-island identified by the MetaXML container attribute contains the configuration information used by the ListEditor HTML component (HTC).
For more information about the ways in which an XML document can be included on a page (creating an XML data-island), see XML Data-Islands.
The structure of this data-island is shown below, with links to more detailed explanations of each element. Element attributes are shown in italic and without the values that are normally associated with them. Required elements and attributes are shown in bold; optional elements and attributes are not bolded.
Note
- The XML elements and attributes in the MetaXML data-island for the ListEditor HTC must be expressed in lowercase letters.
XML Structure
<listeditor>
<columns>
<columnformat hide id width>Column name</column>
</columns>
<fields>
<booleanbrowse browsereadonly default disabled hideid onbrowse onchange onerror readonly
<browsetooltip>Tooltip for browse button</browsetooltip>
<name>Name of field in left-hand column</name>
<label>Checkbox label</label>
<tooltip>Tooltip for the left-hand column label</tooltip>
</boolean>
<datebrowse browsereadonly default disabled firstday hide id max min onbrowse onchange onerror onrequire onvalid readonly required
<browsetooltip>Tooltip for browse button</browsetooltip>
<format>Date format to use</format>
<error>Name of field in left-hand column</error>
<name>Column heading name</name>
<prompt>Empty control prompt</prompt>
<tooltip>Tooltip for the left-hand column label</tooltip>
</date>
<numericbrowse browsereadonly default disabled hide id max min onbrowse onchange onerror onrequire onvalid readonly required subtype
<browsetooltip>Tooltip for browse button</browsetooltip>
<format>Number format to use</format>
<error>Validation error message</error>
<name>Name of field in left-hand column</name>
<prompt>Empty control prompt</prompt>
<tooltip>Tooltip for the left-hand column label</tooltip>
</numeric>
<selectbrowse browsereadonly default disabled hide id onbrowse onchange onerror onvalid readonly
<browsetooltip>Tooltip for browse button</browsetooltip>
<name>Name of field in left-hand column</name>
<prompt>Empty control prompt</prompt>
<tooltip>Tooltip for the left-hand column label</tooltip>
<selectid>
<optionvalue>Item display name</option>
</select>
...
<selectid>
<optionvalue>Item display name</option>
</select>
</select>
<textbrowse browsereadonly default disabled hide id maxlen minlen onbrowse onchange onerror onrequire onvalid readonly required subtype
<browsetooltip>Tooltip for browse button</browsetooltip>
<charmask>Validation character mask</charmask>
<error>Validation error message</error>
<name>Name of field in left-hand column</name>
<prompt>Empty control prompt</prompt>
<tooltip>Tooltip for the left-hand column label</tooltip>
</text>
<timebrowse browsereadonly default disabled hideid max min onbrowse onchange onerror onrequire onvalid readonly required
<browsetooltip>Tooltip for browse button</browsetooltip>
<error>Validation error message</error>
<name>Name of field in left-hand column</name>
<prompt>Empty control prompt</prompt>
<tooltip>Tooltip for the left-hand column label</tooltip>
</time>
</fields>
</listeditor>
listeditor
This required element contains the configuration information for a ListEditor HTC.
Parent Element
None (document root).
Required Child Elements
columns, fields
Optional Child Elements
None.
Data
None.
Attributes
None.
Return to XML Structure
columns
This required element contains the descriptions of the various columns that the ListEditor HTC displays in the list area.
Parent Element
listeditor
Required Child Elements
column
(at least one is required, but normally two or more are present)
Optional Child Elements
None.
Data
None.
Attributes
None.
Return to XML Structure
column
This required element provides configuration information about a particular column in the list area of a ListEditor HTC.
Parent Element
columns
Required Child Elements
None.
Optional Child Elements
None.
Data
The name of the column as the user sees it.
Attributes
Attribute | Description |
format | Specifies how the data in this column should be formatted.
Optional. Legal values: "select", "password", and "float". See below for additional details. Default value: None. When the format attribute is set to "select", the embedded ListSheet HTC will look for a select element in the meta-data corresponding to the id attribute and look up the display value to display for the value in the column. When the format attribute is set to "password", the value will be masked just like in a password type HTML element. When the format attribute is set to "float", the value will be normalized. For example, "2.00" displays as "2". |
hide | Specifies whether this column should be displayed.
Optional. Legal values: "yes" and "no". If the value is "yes", the column is not displayed. Default value: "no". |
id | Provides an identifier used to associate this column with the corresponding data in the DataXML container attribute.
Required. The value of this attribute may or may not correspond to the value of the id attribute for one of the field elements. |
width | Specifies an initial width for the column corresponding to this element.
Optional. Legal values: Integers between 0 and 100, representing column width as a percentage of control width. The specified widths of all columns are normalized if they do not add up to 100. Default value: If a width is not specified, the width percentage is calculated as the total width divided by the number of displayed columns. |
Remarks
At least one column element is required.
Return to XML Structure
fields
This required element contains the elements that specify the various fields to be displayed in the edit area of the ListEditor HTC.
Parent Element
listeditor
Required Child Elements
None.
Optional Child Elements
boolean, date, numeric, select, text, time
Data
None.
Attributes
None.
Remarks
It must contain at least one such element, though in general it will contain several such elements, corresponding to a ListEditor HTC with several fields in the edit area.
Elements defined within the fields element are displayed as rows in the edit area of the ListEditor, in the order in which they appear within the fields element. For example, the first element defines the top row and the last element defines the bottom row.
The child elements of the fields element are essentially the same as the elements that can be defined as child elements of the editfield element in the configuration data for the EditField HTC. The primary difference is that child elements of the ListEditor HTC can include additional child elements, namely the name and tooltip elements. For information about the attributes that are shared, see Shared EditField Attributes.
Return to XML Structure
boolean
This optional element provides configuration and validation information about a particular field in a ListEditor HTC containing a Boolean value.
Parent Element
fields
Required Child Elements
None.
Optional Child Elements
browsetooltip, label, name, tooltip
Data
None.
Attributes
Attribute | Description |
id, browse, browsereadonly, default, disabled, hide, onbrowse, onchange, onerror, readonly | The id attribute is required. All others are optional.
For more information about these attributes, see Shared EditField Attributes. |
Return to XML Structure
date
This optional element provides configuration and validation information about a particular field in a ListEditor HTC containing a date value.
Parent Element
fields
Required Child Elements
None.
Optional Child Elements
browsetooltip, error, format, name, prompt, tooltip
Data
None.
Attributes
Attribute | Description |
id, browse, browsereadonly, default, disabled, hide, max, min, onbrowse, onchange, onerror, onrequire, onvalid, readonly, required | The id attribute is required. All others are optional.
For more information about these attributes, see Shared EditField Attributes. |
Return to XML Structure
numeric
This optional element provides configuration and validation information about a particular field in a ListEditor HTC containing a numeric value.
Parent Element
fields
Required Child Elements
None.
Optional Child Elements
browsetooltip, error, format, name, prompt, tooltip
Data
None.
Attributes
Attribute | Description |
id, browse, browsereadonly, default, disabled, hide, max, min, onbrowse, onchange, onerror, onrequire, onvalid, readonly, required, subtype | The id attribute is required. All others are optional.
For more information about these attributes, see Shared EditField Attributes. |
Return to XML Structure
select
This optional element provides configuration and validation information about a particular field in a ListEditor HTC containing a fixed set of choices.
Parent Element
fields
Required Child Elements
select (at least one, but generally two or more)
Optional Child Elements
browsetooltip, name, prompt, tooltip
Data
None.
Attributes
Attribute | Description |
id, browse, browsereadonly, default, disabled, hide, onbrowse, onchange, onerror, onvalid, readonly | The id attribute is required. All others are optional.
For more information about these attributes, see Shared EditField Attributes. |
Return to XML Structure
text
This optional element provides configuration and validation information about a particular field in a ListEditor HTC containing a text value.
Parent Element
fields
Required Child Elements
None.
Optional Child Elements
browsetooltip, charmask, error, name, prompt, tooltip
Data
None.
Attributes
Attribute | Description |
id, browse, browsereadonly, default, disabled, hide, maxlen, minlen, onbrowse, onchange, onerror, onrequire, onvalid, readonly, required, subtype | The id attribute is required. All others are optional.
For more information about these attributes, see Shared EditField Attributes. |
Return to XML Structure
time
This optional element provides configuration and validation information about a particular field in a ListEditor HTC containing a time value.
Parent Element
fields
Required Child Elements
None.
Optional Child Elements
browsetooltip, error, name, prompt, tooltip
Data
None.
Attributes
Attribute | Description |
id, browse, browsereadonly, default, disabled, hide, max, min, onbrowse, onchange, onerror, onrequire, onvalid, readonly, required | The id attribute is required. All others are optional.
For more information about these attributes, see Shared EditField Attributes. |
Remarks
The format of fields associated with the time element is fixed. Hours and minutes are displayed in a 24-hour format, separated by the colon character (":"). Seconds are not supported.
Return to XML Structure
browsetooltip, charmask, error, format, label, name, option, prompt, select, tooltip
These ten elements are used to qualify or extend the behavior of one or more of the EditField elements of various data types, embedded within the ListEditor HTC. For more information, see Shared EditField Child Elements.
Return to XML Structure