on 2010 Mar 15 9:46 AM
Hi
I have a requirement to display a percentage field with 2 decimal places in an Adobe form e.g. 75.00%.
The field has been declared as type ANZHL (DEC Length=7 Decimals=2) in a data dictionary structure.
When debugging the controlling program and the actual function module generated for the form itself the contents of the field is 75.00.
In the layout of the form the field has been created as a Decimal field with Display pattern and Data pattern of num{zzzz9.zz%}.
However, when the form is previewed or printed the field is displayed as 7500%.
Does anyone have any idea how to fix this?
Thanks
Request clarification before answering.
Hello
I know this is quite old topic, but for future reference another solution is to use '%' in the pattern.
For example:
you have decimal value 75.00,
- when using pattern num{zz.99%}, it will output 7500%
- when using pattern num{zz.99 '%'}, it will output % as a string, and the whole output will be 75.00 %
So in second case you don't need any extra (floating or text) field to have percentage in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.