MX-Frame Library Send comments on this topic.
Calculator
MX-Developer > Data Access Layer - MxAdapter > Designing Data Source > Schema > Designing a Field > Editors > Calculator

Glossary Item Box

Editor consists of input area where user can enter a number. It is also possible to show a calculator with which the number can be calculated. Calculator offers all functions available in standard calculator.

The appearance and the behaviour of the Calculator editor can be defined with its properties:

Property Description
FormatString Defines the format in which the text will be displayed.
NullText Defines the string that is displayed if the value of a field is missing or null.
AllowNullInput If property is set to True, null value can be entered in the editor.

Example (MxSpace)

To see the implementation of a Calculator editor in MxSpace application click Production -> Manage. See that column (Quantity), in BOM grid, can be edited with the calculator editor.

To implement a calculator editor on a field

  1. Open appropriate adapter (WorkOrderAdapter) in Solution Explorer.
  2. Expand the desired field (Quantity) in the appropriate data source schema (WoBom).
  3. Click Editor node and select CalculatorEditor from a list of editors in the Available Editors section on the right.
©2009 Metronik. All Rights Reserved.