Currency
Currency data type is used for variables that store numerical values of monetary amounts. Define currencies for various regions and set their properties.
Initial Value Definition
Initial value for Currency Data type is defined using one of the following methods:
-
Manually entered fixed value. The number is delimited according to the Input formatting settings.
-
Use of a dynamic value. Dynamic data sources from the toolbar are supported – two options are available:
-
The source is entered Name in square brackets, e.g. [Variable_1].
-
Dynamic data source selection from the dropdown list.
-
-
Use of a special character:
-
Special character can be entered manually using the less than/greater than signs, e.g. <CR>, <LF> ...
-
Special character can be selected from the dropdown list.
-
Note
Desktop Designer supports combined values as the initial value. Read more about combining the values here.
Example:
A combined initial value of a variable may contain a fixed value, a dynamic data source and special characters. The order of inserted items can be set randomly. Three options:
1. aaa123[Variable]<CR> 2. <CR>aaa123[Variable] 3. [Variable]<CR>aaa123
Input Rules
-
Input formatting group specifies the allowed input currency format.
-
Decimal delimiter is the character that separates the integer part from the fractional part of value written in decimal form.
-
Decimal places is the number of decimal places that is allowed to be included in the value.
-
Use 1000 separator enables using a separator that places the thousands into groups.
-
Separator: character that is used as 1000 separator.
-
-
Currency symbol is a graphic symbol that represents a currency.
-
Placement: position of the currency symbol.
-
-
Sample value displays a preview of the currency input format.
-
Limit length enables limiting the number of digits to be defined in a variable.
-
Length (characters): allowed number of digits in a variable.
-
Check range defines the minimum and maximum values expressed in currency. Defining the minimum and maximum limits is optional.
-
Minimum value: the lowest allowed input currency value.
Note
If already defined, the initial value is taken as the minimum value.
-
Maximum value: the highest allowed input currency value.
Output Rules
Output formatting specifies the preferred output currency format.
-
Decimal delimiter: character that separates the integer part from the fractional part of a value written in decimal form.
-
Decimal places: number of decimal places to be included in the value.
-
Use 1000 separator: separator that places the thousands into groups.
-
Separator: character that is used as 1000 separator.
-
-
Currency symbol is a graphic symbol that represents a currency.
-
Placement defines the currency symbol's position. Select it from the dropdown list.
-
Sample value displays a preview of the currency input format.
Tip
Input rules help the user when inserting the variable data. They act as a filter that defines the type, length, and other input data properties.
Output rules set the final variable formatting – they define how the variable value is going to be presented in an object.