<< Click to Display Table of Contents >> Number |
Use
The Number control displays numbers in a Form.
Related to attribute types
This control is related to number-type attributes. Number attributes are classified as:
oInteger: Store integers up to 10 digits.
oSmall Integer: Store integers up to 5 digits.
oBig Integer: Store integers up to 19 digits.
oReal: Store real numbers with up to 38 decimal digits.
oTiny Integer: Store integers from 0 through 255.
oFloat: Store real numbers with up to 38 decimal digits.
This control can also be related to currency type attributes. If used with currencies the control will not display the currency symbol (as is done in the Money control.)
Properties
The following are properties exclusive to the Number control:
Format tab
PROPERTY |
DESCRIPTION |
---|---|
Allow Decimals |
Defines if the control will display decimal digits. We recommend using Float or Real attribute types. |
Decimal Places |
If decimals are allowed, this property defines how many decimals will be displayed. |
Include percentage format |
Defines if the control will display the percentage symbol at the end of the value. |
Allow thousands separator |
Defines if the value will have a thousands separator. The thousand separator used is defined in Business Configuration. |
Properties example
For this example, we have defined the following values for the properties mentioned above:
•Annual base salary (US$):
oAllow decimals: No.
oInclude Percentage: No.
oAllow thousands separator: Yes.
•Commission percentage
oAllow decimals: No.
oInclude Percentage: Yes.
oAllow thousands separator: No.
•Retention rate
oAllow decimals: Yes.
oDecimal places: 2
oInclude Percentage: Yes.
oAllow thousands separator: No.
The result for this example is as follows:
Advanced tab
PROPERTY |
DESCRIPTION |
---|---|
Re-type |
Forces the user to re-enter the value to make sure they entered it correctly. These values are compared on clicking the Next button. If there is no match the values must be re-entered. The verification value can be configured for entry in one of two ways: •Duplicate: Displays two Number Controls. Both controls must contain the exact same information to continue. •Double: Requires end users to type the same number twice in the same Control. If the values do not match a validation message will display. |
Automatically sets a value when the form opens for the first time. As soon as a value is chosen by the user the default will be replaced. If the associated attribute is valued by means of an expression, the default value of the Number control will be ignored. The default value can also be set using an expression. |
|
Defines the minimum number allowed to be entered. |
|
Defines the maximum number allowed to be entered. |
Clicking the Set to default value icon will reset the properties. |
Re-type property example
Example
In a Purchase Request Process it is necessary to verify the minimum number of quotations required to select a supplier.
The number of quotations is an integer.
Define an integer attribute in the Data Model and drag and drop it onto the Form.