Text and memo editors
Use FdcTextEdit for single-line input and FdcMemoEdit for multiline text. Both controls bind directly to the current record of a dataset.
Single-line text
FdcTextEdit(
dataSet: customers,
fieldName: 'company_name',
label: 'Company name',
hint: 'Enter a company name',
selectAllOnFocus: true,
)
When the bound field is an FdcStringField, the editor uses the field size as its maximum text length. An optional counter can expose that limit visually:
FdcTextEdit(
dataSet: customers,
fieldName: 'company_name',
showCounter: true,
)
Multiline text
FdcMemoEdit(
dataSet: customers,
fieldName: 'notes',
label: 'Notes',
hint: 'Add account notes',
)
FdcMemoEdit participates in the same dataset edit lifecycle as the other editors; it is not a detached text area.
Read-only fields
Use readOnly when the value should be visible and focusable but not editable:
FdcTextEdit(
dataSet: customers,
fieldName: 'customer_code',
readOnly: true,
)
GUID fields rendered through FdcTextEdit are read-only.
Focus behavior
Common options include:
FdcTextEdit(
dataSet: customers,
fieldName: 'city',
autofocus: true,
selectAllOnFocus: true,
focusOrder: 30,
tabStop: true,
)
Use FDC focus ordering when a data-entry screen needs a stable keyboard path independent of widget layout.