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

Glossary Item Box

Defines the scope for which the value is remembered.

Remarks

Property specifies the scope for which the system remembers previously selected value. When user interface is opened the control automatically selects value, which was previously selected in the same scope. The feature speeds up work process by predicting desired value for a user.

Of course the same value can only be selected if it exists in the data populating the control. If the data is missing the default record will be selected.

Several different scopes are available which determine the behaviour of the control.

Scope Description
User Value is remembered for an individual user. A user selects a value in the control. Next time the user interface is opened and the control is populated with data, the same value will be selected.
Workgroup Value is remembered for the workgroup to which the user, who last select the value, belongs to.
Workstation Value is remembered for a particular workstation. This means that it does not really matter which user is currently logged and what are his privileges, the selected value will be the same as long as he is working on this workstation.
PlantLevel Value is remembered for the workplace currently selected. This means that the same value will be selected for every user, with any kind of privileges or workgroup, on every station as long as he is logged on this workplace.
Role Value is remembered for the security role to which the user, currently logged in, belongs to.

In order to implement this feature a unique key must be defined by which the value will be determined. To learn how to define unique value see chapter Key.

Example (MxSpace)

To see the defined Scope 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 User defined in Scope property.

To define Scope 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 Scope property select the desired scope (User).

See Also

MxPart
Key

©2009 Metronik. All Rights Reserved.