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 Control Auto Generated? Notes
Address Field No Used to visualize an address
Badge Yes Automatically generated for Not null read-only attributes of type BOOLEAN
Currency/Measure No Used to display/edit a combination of value and unit
Date Range Field No Used to display/edit start and end dates in a single field
Date Time Picker Yes Automatically generated for attributes of type DATE, TIME, and TIMESTAMP
Drop-down List Yes Generated for nullable attribute of type BOOLEAN and for enumerations
List of Values No Used to display reference values
Multiline Yes Used to enter long text
Static No Used for read-only attributes
Toggle Button Yes Automatically 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