Editor consists of input area where user can enter a text. It is also possible to show a list of possible values. List is displayed as a grid. Grid displays all appropriate fields. It is possible to search for the record by individual column. It is also possible to define a filter which is then used for filtering data in the grid.
The appearance and the behaviour of the AdvancedText editor can be defined with its properties:
Property | Description |
---|---|
FormatString | Defines the format in which the text will be displayed. |
NullText | Defines the string that is displayed if the value of a field is missing or null. |
AllowNullInput | If property is set to True, null value can be entered in the editor. |
LinkedMember | Defines the field in the schema to which the selected value will be attached. Selected value is defined with property ValueMember. |
ValueMember | Defines the field in the list which will be attached to the field defined with property LinkedMember. |
Adapter | Defines the adapter from which it is possible to select a data source. |
DataSourceName | Defines the data source from which fields can be retrieved for properties LinkedMember and ValueMember. It is possible to select any data source created in adapter defined with property Adapter. |
Example (MxSpace)
To see the implementation of a AdvancedText editor in MxSpace application click Production -> Bom. See that column (Article) can be edited with advanced text editor.
To implement an advanced text editor on a field
- Open appropriate adapter (BomAdapter) in Solution Explorer.
- Expand the desired field (ArticleId) in the appropriate data source schema (BOM).
- Click Editor node and select AdvancedTextEditor from a list of editors in the Available Editors section on the right.
- Set Adapter property to BomAdapter.
- Set DataSourceName property to ArticleEditor.
- Set LinkedMember property to ArticleId.
- Set ValueMember property to Id.
MxAdapter
Editors