Numeric editors
FDC provides separate editors for integer and decimal fields so parsing, formatting, validation, and value semantics remain aligned with the dataset schema.
Integer input
FdcIntegerEdit(
dataSet: inventory,
fieldName: 'reorder_level',
label: 'Reorder level',
allowNegative: false,
)
FdcIntegerEdit binds to an FdcIntegerField and writes integer values into the dataset edit buffer.
Decimal input
FdcDecimalEdit(
dataSet: products,
fieldName: 'unit_price',
label: 'Unit price',
allowNegative: false,
)
FdcDecimalEdit preserves FDC exact decimal semantics through FdcDecimal; it does not convert financial values to binary floating-point values during editing.
The field definition supplies precision and scale constraints. The editor can also receive a local formatSettings override when a screen needs formatting different from the application default.
Validation belongs to the field model
For reusable numeric constraints, define validation on the field rather than duplicating the same checks in every editor. The editor presents field validation feedback while the dataset remains the source of truth.
Edit text and display formatting
Numeric editors keep input behavior suitable for editing while the value is focused, then use resolved formatting for display. This avoids treating a formatted display string as the actual stored value.