Skip to content

Field

A field is the most basic of controls used for data entry as well as display. Based on the data type of the field, the control can take on the appearance of any of the variations listed below.

Field

Figure 1 - Field Control

Variations

The field control has many variations, some of these variant controls are generated automatically based on the attribute type while others are separate controls and added manually.

Variant ControlAuto Generated?Notes
Address FieldNoUsed to visualize an address
BadgeYesAutomatically generated for Not null read-only attributes of type BOOLEAN
Computed FieldNoUsed for string interpolations
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
Free TextNoUsed to enter and store values that do not require a check against a reference
List of ValuesNoUsed to display reference values
MultilineYesUsed to enter long text
SignatureNoUsed to manually enter a signature
StaticNoUsed for read-only attributes
Toggle ButtonYesAutomatically generated for Not null editable attributes of type BOOLEAN

When to use

A field can be used anywhere you need to enter or display data.

Limitations

None.

How to use

Use the field within a list, group, or selector in the client model.

field <field_name> {  
  // Properties  
  ...  

}

Keywords

None.

Properties

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

additionaltimezones | basedate | columnexclude | columnvisible | defaulttoprevious | displaytimezone | editable | emphasis | enumerationtrue | falselabel | fieldhint | filterlabel | format | height | initialfocus | label | lovswitch | maxlength | multiline | preserveprecision | regexp | required | searchable | showonlydate | size | sortable | truelabel | type | visible | showtimezonebadge

Example

Below is a simple example of a field in use.

list ItemsList for SubConItem {  
   orderby = RevSeq, LineNo, ItemNo;  
   label = "";  
   field RevSeqRef;  
   field CalculationMethod;  
   field Objstate {  
      size = Small;  
      label = "Status";  
   }  
      field Quantity;  
   field UnitOfMeasureRef {  
      size = Small;  
   }  
   field CurrencyTypeRef {  
      size = Small;  
   }  
   field ItemRate;  
   field SubConValue;  
   field SubConValAdjusted;  
   field SubConValOverride {  
      size = Small;  
   }  
}  

Example - Field in use in a List