4.4 Validators

Some widget types may have Validator (often called Formatter) objects assigned. There are two ways to assign a Validator.

  1. Validator attach due to BusinessData (BD) attribute link: With the XMA Mapper Plugin (see Topic DataBinding(Data Mapping Editor)) it is possible to link XMA widgets with BD attributes. By linking the BD attribute a Validator for the corresponding widget is also created.

  2. Validator attach due to Validator Dialog editing: You can assign a Validator object to a widget per hand. You can select the appropriate Validator type and enter the necessary information. If a BD attribute is already linked to the correspondent widget, the Validator type is predefined by the link. Then the entered information cross-fades the information of the generated BD attribute validator.

validator menu

Figure 4.57. validator menu


There exists 6 Types of Validators:

  • Bcd Validator

  • Date Validator

  • String Validator

  • Timestamp Validator

  • Custom Validator

  • Boolean Validator

With the Validatortype Combo you can choose what validator to use. If there exists a BD Validator you will see the properties of this Validator in the upper left corner.

A Bcd Validator object using fixed-point representation for modeling real number. It is used to generate a BcdFmt class with the appropriate parameter. If you set a Bcd Validator the first time the Alignment of the Textfield ist set to RIGHT.


The controls of the dialog have the following meaning:


A Date Validator object is used to generate a DateFmt class with the appropriate parameter.

The controls of the dialog have the following meaning:



A String Validator object is used to generate a StringFmt class with the appropriate parameter.

The controls of the dialog have the following meaning:



A TimeStamp Validator object is used to generate a TimeStampFmt class with the appropriate parameter.

The controls of the dialog have the following meaning:



A Custom Validator object is used to generate custom formater with the appropriate parameter. By means of the Use a custom validator instead checkbox it is possible to override the validatortype used in the businessdata.

Learn more about Custom Validators in ChapterData Source.(Guidesigner Overview)

The controls of the dialog have the following meaning:



A Boolean Validator object is used to limit th value range of hidden widgets to boolean values.

The controls of the dialog have the following meaning: