|
Property "Value Format" <format> |
|
|
When the Value Property of a Text or Edit Box element is number, you can specify how the numbers are to be formatted using the value format function. Examples:
Grouping Separator and the Decimal Separator can be different depending on the language of the page. Example:
Language dependent system variables When formatting numbers instead of hard coding these separators you can use special system variables: %vof(GS) : Grouping Separator %vof(DS) : Decimal Separator
These system variables take on values relative to the language of the page. Example:
Formation numbers using %xfn() function If you need to format a number anywhere else, for example in a richtext element, you can place the Library element "System Library > mor > XSLTemplates > MMTemplates" into page and call %xfn() function.
Using a decimal format other than "std" In case of you need to format a number using a decimal format other than "std", which is defined by the Application Studio automatically, then you should first define it using %decfmt() compile-time function and refer it in the format parameter as follows. #.###,00//fmt_en
The "//" is the seperator between the format and the decimal format name. The fmt_en should be defined using %decfmt() anywhere in the current page as follows %decfmt('fmt_en',',','.')
Another Example: %decfmt('fmt_fi',' ','.') %xfn(Price,'# ###.00//fmt_fi')
Used In Elements
|