Skip to content

Fieldset

A reusable group of fields.

This will enable you to reuse a definition of fields in several places without repeating code.

Variations

Content of a fieldset control can include below variations of a field.

Variant ControlAuto Generated?Notes
Address FieldNoUsed to visualize an address
BadgeYesAutomatically generated for Not null read-only attributes of type BOOLEAN
Currency/MeasureNoUsed to display/edit a combination of value and unit
Date Range FieldNoUsed to display/edit start and end dates in a single field
Date Time PickerYesAutomatically generated for attributes of type DATE, TIME, and TIMESTAMP
Drop-down ListYesGenerated for nullable attribute of type BOOLEAN and for enumerations
List of ValuesNoUsed to display reference values
MultilineYesUsed to enter long text
StaticNoUsed for read-only attributes
Toggle ButtonYesAutomatically generated for Not null editable attributes of type BOOLEAN

When to use

A fieldset can be used in lists, groups, cards and search contexts.

Limitations

None.

How to

  1. Define a fieldset

fieldset <fieldset_name> for <entity_name> {
   field PartNo;
   lov SerialNo;
   field LotBatchNo;
}  
<fieldset_name> - Identity of the Fieldset, always use a meaningful identifier.

<entity_name> - The entity the Fieldset is based on.

  1. Use the fieldset within a list, group, or card, or searchcontext in the client model.
list <list_name> for <entity_name> {
   label = "As-Built Structure Components";
   fieldset MySet;
   ...
}

Keywords

for | clone

Properties

Below is a list of properties that can be used to customize the control.

fieldorder | exclude

Example

Below is a simple example of a fieldset in use.

fieldset MySet for AsBuiltConfiguration {
   field PartNo;
   field SerialNo;
   field LotBatchNo;
} 

list ComponentNodeList for AsBuiltConfiguration {
   label = "As-Built Structure Components";
   fieldset MySet;
   ...
}

Example - Fieldset in use in a List