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

Glossary Item Box

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

Remarks

Property specifies the maximum 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 upper limit for the value of the control.

Maximum 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 MaxValue 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 To value and open Property Window. See the value DateAdd('day',1,Today()) defined in MaxValue property.

To define MaxValue property

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

See Also

©2009 Metronik. All Rights Reserved.