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
- In Solution Explorer open MxPart component (StockPart) which contains control (Combo) for data binding.
- Select the desired control (Combo – Article) on the canvas.
- Open Property Window.
- 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.
MxPart
Scope