FIELD element
The FIELD element specifies a data value to be displayed in a CLUSTER, a value to be retrieved from the user via an input control in a CLUSTER, or a list of data values to be displayed in a LIST column. FIELD elements can also be aggregated within CONTAINER elements so that they fill a single cell of a CLUSTER or LIST element.
Note that when the FIELD element is used to display a code table hierarchy either on an edit or ready-only page, the following should apply:
- For an edit page, only one FIELD element is needed to display a code table hierarchy with a domain definition inherited from CODETABLE_CODE that has the code table name set to the lowest level code table in a hierarchy. The CDEJ infrastructure automatically determines its code table hierarchy and then displays however many dropdowns it has, i.e. if it is a three level hierarchy, then the three levels are displayed.
- For a read-only page, however only the lowest level code table value is displayed on the screen by the same way using a single FIELD element as the edit page. And the CDEJ infrastructure does not support on displaying its full hierarchy.
Attributes
The FIELD element has the following attributes:
|
Attribute Name |
Required |
Default |
Description |
|---|---|---|---|
|
|
No |
A reference to an externalized string that needs to be used as the associated label for this
field. The |
|
|
|
No |
A reference to an externalized string that contains the associated label abbreviation text for
this field. This label abbreviation is placed only on table headers in a |
|
|
|
No |
A reference to an externalized string that is displayed below the label text. |
|
|
|
No |
A reference to an externalized string that is used as the alternate text for the field. This
reference is applicable only when the field has a target connection, that is, it is an input field.
If this attribute is added to a mandatory input field, the text |
|
|
|
No |
Specifies the width of the field value within its cluster or list cell. |
|
|
|
No |
|
The units in which the width is interpreted. This measurement can be |
|
|
No |
|
For input fields that resolve to a text input control, this input specifies the number of visible lines of text that the control displays. For input fields that resolve to a selection list, this value specifies the number of entries that are initially displayed. For example, a scrollable selection list is displayed instead of a drop-down selection list. |
|
|
No |
|
Defines the horizontal alignment of the field value. Can be set to |
|
|
No |
|
If set to For example, numeric fields display a zero, string fields are empty, and date fields defaults to the current date. |
|
|
No |
|
If the field source is a code-table-based property, or a server interface list property, it is
displayed in a list. If this attribute is set to |
|
|
No |
|
The
|
|
|
No |
Identifies configuration details for this
|
|
|
|
No |
false |
A |
|
|
No |
false |
This attribute is used to configure a placeholder value in the field that is associated with a Date Selector, if the field is blank. On focus, the placeholder text disappears to allow for data entry. |
|
|
No | This setting is used to configure Dynamic Conditional Clusters. The purpose of the
CONTROL_REF is to set the controlling input. If something is selected, a cluster
becomes visible. The CONTROL_REF attribute is set to an identifier that is
evaluated by the JavaScript. |
Child elements
The FIELD element can contain the following child elements.
|
Element Name |
Cardinality / Description |
|---|---|
|
CONNECT |
0..3. A field can contain up to three CONNECT elements. The SOURCE connection defines the initial value for the field (this will be the static value shown if there is no target end-point, or the initial value of an input control if there is a target end-point). The TARGET end-point defines the property that will be set from the field value during the action phase. If a TARGET end-point is specified the SOURCE end-point can only be from a server interface property. This is because domain information is required to correctly format the value for display in the input control. If an INITIAL end-point is used and the property is not a list value, it specifies the visible value of the field (which will be read-only). The SOURCE value will be hidden, and the pair of values can only be changed via a pop-up search page. The TARGET end-point will be supplied with the hidden value. If an INITIAL end-point is used and the property is a list value, it specifies the visible values in a drop-down list. The INITIAL element's HIDDEN_PROPERTY specifies the corresponding list of hidden values that will be supplied to the TARGET end-point. In this instance, the SOURCE end-point specifies one of the hidden values in the list that should be used as the initial list selection (the corresponding visible value is displayed). |
|
LINK |
0..1. Only valid for output fields (those with no TARGET connection end-point). The value of the output field will be used as the text for the hyperlink specified by this LINK element. If the field is based on a domain which requires a pop-up window then the LINK element can be used to supply parameters to the pop-up page. In this case the LINK element must not have a PAGE_ID attribute specified. See Using the pop-up page for further details. |
|
LABEL |
0..1. Allows the label for a FIELD to constructed from a number of sources. If both a LABEL attribute and LABEL child element are specified, the element takes precedence. See LABEL element for more details. |
|
SCRIPT |
0..n. A script file associated with this FIELD that contains JavaScript code to be activated in response to the specified event on the field control. See SCRIPT element for more details and limitations on this element usage. |