It is often the case when a field must not be edited but it must be displayed. In this case the field and the value are shaded and cannot be modified.
Field Read Only
User requirements specify that a field must be visible in edit mode but it cannot be edited. In order to achieve this set ReadOnly property of the field to True.
Example (MxSpace)
In the user interface for managing equipment display field Date & Time in edit mode, but this field cannot be modified. To see the implementation of a read only field in MxSpace application click Code Lists -> Equipment. See that the field Date & Time is displayed in the editor but is disabled.
To make a field read only
- Open appropriate adapter (EquipmentAdapter) in Solution Explorer.
- Select the desired field (Timestamp) in the appropriate data source schema (Equipment).
- Set ReadOnly property to True.
MxAdapter
Default Value
Mask
Summary