It is important that data in application is displayed in correct format. It does not matter with which control data is presented in an application, data values of certain types must be presented equally or in the same format. Types of format may depend on culture settings, region setting or simply on user requirements. In order to set desired mask several properties are available. With these properties it is possible to define the appearance and the behaviour of a value in a specific field.
Example (MxSpace)
In the user interface for managing equipment present the date in following format: “31.12.2008 20:45”. To see the implementation of a mask in MxSpace application click Code Lists -> Equipment. See that the field Date & Time displays DateTime values in the format defined above.
To define the format for a field
- Open appropriate adapter (EquipmentAdapter) in Solution Explorer.
- Expand the desired field (Timestamp) in the appropriate data source schema (Equipment).
- Select Mask node.
- In property Type select DateTime.
- In property Mask enter string “dd.MM.yyyy HH:mm”.
MxAdapter
Read Only
Default Value
Summary