MX-Frame Library Send comments on this topic.
AdvancedText
See Also
MX-Developer > Data Access Layer - MxAdapter > Designing Data Source > Schema > Designing a Field > Editors > AdvancedText

Glossary Item Box

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

  1. Open appropriate adapter (BomAdapter) in Solution Explorer.
  2. Expand the desired field (ArticleId) in the appropriate data source schema (BOM).
  3. Click Editor node and select AdvancedTextEditor from a list of editors in the Available Editors section on the right.
  4. Set Adapter property to BomAdapter.
  5. Set DataSourceName property to ArticleEditor.
  6. Set LinkedMember property to ArticleId.
  7. Set ValueMember property to Id.
     

See Also

MxAdapter
Editors

©2009 Metronik. All Rights Reserved.