MX-Frame Library Send comments on this topic.
AdvancedText
MX-Developer > User Interface - MxPart > Controls > AdvancedText

Glossary Item Box

This is a control for entering or selecting data. The main advantage of this control is that while it enables the user to select a value from a list, user can also write any value in the text editor. This feature significantly speeds up the work process, especially when working with routine operations or actions.

Using this control it is possible to either enter the desired value or to select it from a predefined list. Entered and selected value can then be used for numerous purposes. Usually this control serves as some sort of parameter provider for another data source.

It is possible to bind two data sources by defining foreign keys or a developer can avail Parameters property of this control. With this property it is possible to define to which data source and which statement the selected or entered value is passed. 
 
Control has many properties that define its appearance, design, behaviour etc.

Context Properties

Properties in this section define the appearance of the control in Personalization Directory and the behaviour of the control when in edit mode.

Property Description
Category Define the name by which the control is displayed in Personalization Directory.
Entity Defines the name of the group in which the control is located in Personalization Directory.
NavigationVisible The feature is obsolete.
TrackDirty Defines whether user interface can be closed while the control is in edit mode.

Data Properties

Properties in this section define how and which data is bound to the control.

Property Description
Adapter Defines the MxAdapter component from which data can be retrieved and used for any kind of manipulation.
DataMember Defines the scheme field of which the value is displayed in the control.
DataSourceName Defines the data source which will be used to display and manipulate data.
DropDownAdapter Defines the MxAdapter component from which data sources and fields are available for manipulation when using drop down lists.
DropDownDataSourceName Defines the data source from which the fields will be used to display and manipulate data when using drop down lists.
Parameters Defines the input parameters for any desired statement; readable or writable.
Key Define the key by which the control is uniquely represented in the system.
Scope Defines the scope for which the value is remembered.
ValueMember Defines the field which represents the currently selected record in the control.

Design Properties

Properties in this section define basic properties of the control, appearance and functionality of the control.

Property Description
Name Defines the name of the control or the component.
DefaultValue Defines the value displayed when no other value is selected by a user.
AllowNullInput Defines whether it is possible to enter null values in the control.
NullButton Defines the appearance of null button in the control.
NullText Defines the text displayed when the control has null value assigned.
RefreshButton Defines the appearance of the refresh button in the control.
SearchButton Defines the appearance of the search button in the control.

NOTE: Properties described here are related exclusively to Mx Controls. For the description of other properties please see Developer Express documentation.

Example (MxSpace)

To see the implementation of the AdvancedText control open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click StockPart.cs. See the control in section Last Name.

To implement AdvancedText control

  1. In Solution Explorer open MxPart component (StockPart) and add AdvancedText control from the Toolbox to the desired location on the canvas.
  2. From the Toolbox add the desired predefined MxAdapter component (StockAdapter) which will provide data for the AdvancedText control.
  3. Select AdvancedText control and open Property Window.
  4. In property DropDownAdapter select the desired MxAdapter component (stockAdapter1).
  5. In property DropDownDataSourceName select the data source (Names) that will provide the data.
  6. In property ValueMember select the field (last_name) whose value will represent selected record and will be passed to other data source as a parameter.
  7. If necessary define parameter mapping element in property Parameters.
©2009 Metronik. All Rights Reserved.