Input controls are specialized form controls beyond the standard field and lov. They handle structured inputs (dates, units, addresses), selection patterns (radio groups, item pickers), and media capture (signature, color). All support editable, visible, required, and label unless noted.
Control
Comparable to
Purpose
currency / measure
<input> + <select> unit combo
Numeric value paired with a unit (currency code or unit of measure)
daterangefield
Date range picker (e.g., react-datepicker range)
Start + end date selection in one control
datetimepicker
<input type="datetime-local">
Explicit date + time selection
colorpicker
Color swatch palette picker
Select a predefined color from a palette
radiogroup
<input type="radio"> group
Mutually exclusive option selection
ratingcontrol
Star rating widget (React Stars, Ant Design Rate)
Numeric rating on a 1–N scale
itempicker
Dual-list transfer widget (e.g., Ant Design Transfer)
Move items between Available and Selected lists
addressfield
Structured address form
Multi-line address entry
signature
Signature pad
Freehand signature capture
currency and measure
A composite control pairing a numeric value with a unit (currency code or unit of measure). The unit can come from an entityset lookup and be editable or read-only independently of the value.
Syntax
currency <ValueAttr>(<UnitAttr>) { label = "<label>"; unitlookup <EntitySet>(<UnitKeyAttr>); unitselector <SelectorName>; uniteditable = [<expression>]; -- false: unit read-only, value editable unitvisible = [<expression>]; unitrequired = [<expression>]; unitexportlabel = "<Excel column header for the unit column>"; format = <decimal | ifscurrency | percentage>; preserveprecision = [<boolean>]; editable = [<expression>]; visible = [<expression>]; required = [<boolean>]; showlabel = [<boolean>]; searchable = [<boolean>]; size = <Small | Medium | Large | FullWidth>; validate command { execute { ... } }}-- Measure works identically but the unit entity is IsoUnit instead of IsoCurrency:measure <ValueAttr>(<UnitAttr>) { unitlookup <EntitySet>(<UnitKeyAttr>); unitselector <SelectorName>; ...}
-- Currency field: Amount in CurrencyCode, unit editable only on new recordscurrency EntryFee(CurrencyCode) { label = "Entry Fee"; unitlookup IsoCurrencyEntitySet(CurrencyCode); unitselector IsoCurrencySelector; uniteditable = [isNew]; -- lock currency after initial save format = ifscurrency; preserveprecision = [true]; validate command { execute { if [Amount > 10] { alert("Amount greater than 10"); } } }}-- Measure field: Quantity in a unit of measuremeasure OrderQty(UnitOfMeasure) { label = "Order Quantity"; unitlookup IsoUnitEntitySet(UnitOfMeasure); unitselector IsoUnitSelector; uniteditable = [isNew]; format = decimal;}-- Read-only unit (no unitlookup needed when unit is never editable):currency BudgetAmount(BudgetCurrency) { label = "Budget"; uniteditable = [false]; format = ifscurrency;}
uniteditable = [isNew] Is the Standard Pattern
Currency and unit fields are almost always set at record creation and never changed afterward. uniteditable = [isNew] (where isNew evaluates true when ETag = null) enforces this naturally.
Compare to: a React form where the currency <select> is disabled once the record has been saved.
preserveprecision
When enabled, the value stores more decimal places than the format displays. For example, format = ifscurrency might show 2 decimals, but with preserveprecision = [true], all digits are preserved and become visible when the user edits the field.
daterangefield
A control that captures both a start date and an end date in a single UI component. The user picks a date range using a calendar widget.
The attribute named in daterangefield must be a structured date range type in the projection — it stores both start and end. This is different from two separate field StartDate and field EndDate declarations.
datetimepicker
An explicit date and time input control. Used for attributes that store a TIMESTAMP and require the user to specify both the date and the time-of-day portion. Optionally shows seconds.
Syntax
datetimepicker <AttrName> { label = "<label>"; format = longtime; -- include seconds display; omit for HH:MM only size = <Small | Medium | Large | FullWidth>; editable = [<expression>]; visible = [<expression>];}
datetimepicker ScheduledStart { label = "Scheduled Start"; size = Medium;}-- With seconds display:datetimepicker ActualClockIn { label = "Clock In"; format = longtime; -- renders HH:MM:SS instead of HH:MM}
datetimepicker vs field for Timestamps
A standard field <TimestampAttr> will also display a date+time input based on the projection data type. Use datetimepicker explicitly when you need format = longtime (seconds), or when the visual distinction from a plain date field matters in context.
colorpicker
A palette-based color selector. The user picks from a predefined set of IFS color swatches. The selected color is stored as a string constant in the attribute.
colorpicker CategoryColor { label = "Category Color"; defaultemphasis Colorpicker4 = [true]; -- 5th palette color as default editable = [IsEditable];}
Color Constants: Colorpicker0 – Colorpicker18
The palette has 19 pre-defined colors (indices 0–18). The selected value is stored in the attribute as the constant name string. See Emphasis and Colors for the boximage usage pattern that pairs with color picker values.
radiogroup
A set of mutually exclusive radio buttons. Used for attributes with a small fixed set of options where seeing all choices at once is better than a dropdown. Corresponds to an enumeration or a fixed value set.
Use radiogroup when: there are 2–4 options, all options are equally valid to see upfront, and the choice affects other fields (triggering validate commands). Use a lov when: there are many options, the options change dynamically, or the list is fetched from the database.
Compare to: React’s <RadioGroup> (Material UI), HTML <input type="radio"> group.
ratingcontrol
A star (or numeric scale) rating input. The user clicks to set a rating from 1 to maxrating.
Syntax
ratingcontrol <AttrName> { label = "<label>"; maxrating = <N | AttrName>; -- integer 1-10, or an attribute holding the max showlabel = [<boolean>]; size = <Small | Medium | Large | FullWidth>;}
-- 5-star rating (fixed):ratingcontrol CustomerSatisfaction { label = "Satisfaction"; maxrating = 5;}-- Dynamic max rating from an attribute:ratingcontrol SkillLevel { label = "Skill Level"; maxrating = MaxSkillLevel; -- from the entity}
Stored as a Number
The underlying attribute is a numeric value (1 to maxrating). The control renders it visually as filled stars — the storage is a plain integer in the database.
itempicker
A dual-list transfer control. Users move items from an “Available” list to a “Selected” list. Equivalent to Ant Design’s Transfer component or any dual-list multi-select pattern.
Syntax
itempicker <Name> using <EntitysetName>(<EntityRef>) { label = "<label>"; displayvalue = <AttrName>; -- attribute to show in the lists (required) orderby = <AttrName> asc; filter = [<condition>]; availableitemslabel = "<Available list header>"; selecteditemslabel = "<Selected list header>"; compactmode = [<boolean>]; -- compact: shows selected only, full control on click enableordering = [<boolean>]; -- allow user to reorder selected items editable = [<boolean>]; visible = [<boolean>];}
The itempicker has no implicit way to know which attribute to show in the lists. displayvalue = <AttrName> is mandatory. Without it, the lists render empty.
Compare to: Ant Design Transfer, React DualListBox, Windows “Add/Remove” dialog.
addressfield
A structured multi-line address input control. Renders as a composite control with standard address sub-fields (street, city, postal code, country).
signature (above) captures a drawn signature image on a single field. digitalsignature is a separate, list/group-level construct for hash-based signed-content tracking — see List → digitalsignature.
fileselector
A file upload control with onfileselect/onfiledelete command hooks.
“onfileselect command for a file selector” — fires when the user picks a file.
onfileselect { execute { call FetchDefaults(); }}
onfiledelete
“onfiledelete command for a file deletion” — fires when the user removes a previously selected file.
onfiledelete { execute { call FetchDefaults(); }}
Patterns & Tips
currency/measure Pattern: Lock Unit After Creation
Use uniteditable = [ETag = null] (or an equivalent isNew check) to allow unit selection only when creating a new record. Changing a currency or unit of measure on an existing record with transaction history is almost always a data integrity problem.
radiogroup + validate command for Conditional Sections
When the radio selection controls what other fields are visible/required, add a validate command that sets dependent fields to null when the option changes. This keeps the form clean and prevents stale data in hidden fields.
itempicker Requires an Entityset
Unlike a lov (which uses a fragment selector), itempicker binds directly to an entityset using the using keyword. That entityset must be declared in the projection with the correct entity type. The <EntityRef> parameter maps selected items back to the parent entity.
See Also
Fields and LOV — standard field and lov for most input scenarios
Group — the form container where input controls are placed