MX-Frame Library Send comments on this topic.
Key
See Also
MX-Developer > User Interface - MxPart > Controls > Control Properties > Data > Key

Glossary Item Box

Defines the key by which the control is uniquely represented in the system.

Remarks

Property specifies the string by which the control should be uniquely represented in the system. The string can contain up to 32 alfa-numerical characters. Unique key is used to retrieve previously selected value for the exact control. This is done every time user interface containing the control starts.

It is possible to determine several different types of scopes for which the value is remembered. To learn more about available scopes see property Scope.

Example (MxSpace)

To see the defined Key property on a control (Combo) open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click StockPart.cs. Click the combo control and open Property Window. See the value StockArticleCombo defined in Key property.

To define Key property

  1. In Solution Explorer open MxPart component (StockPart) which contains control (Combo) for data binding.
  2. Select the desired control (Combo – Article) on the canvas.
  3. Open Property Window.
  4. In section Data in Key property define the unique string (StockArticleCombo).

NOTE: Be aware that functionality only works if the value is unique for a system. Otherwise the behaviour is unpredictable.

See Also

MxPart
Scope

©2009 Metronik. All Rights Reserved.