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

Glossary Item Box

Defines the minimum value which can be entered in a control.

Remarks

Property specifies the minimum value a user can enter or select in the control. Property is used in order for the end user to follow some predefined constraints. If property is not defined there is no lower limit for the value of the control.

Minimum value is defined as an expression with Expression Designer. This means that it is not necessary that the value is a constant. It can also depend on some setting (system, profile, workplace, etc.) or any other data available on the user interface. Value can also be computed using several date functions.

Example (MxSpace)

To see the defined MinValue property on a control (Date) open MxSpace solution project in Visual Studio. In Solution Explorer expand node Parts and double click WorkOrderManagePart.cs. Click the date control displaying the From value and open Property Window. See the value DateAdd('year',-300,Today()) defined in MinValue property.

To define MinValue property

  1. In Solution Explorer open MxPart component (WorkOrderManagePart) which contains control (Date) for data binding.
  2. Select the desired control (Date – From) on the canvas.
  3. Open Property Window.
  4. In section Design in MinValue property define the desired value (DateAdd('year',-300,Today())) using expression designer’s date functions.

See Also

©2009 Metronik. All Rights Reserved.