Edit Decimal Values with Visual Designer
Posted: Tue Mar 22, 2016 6:26 am
Hi everyone,
We have a textbox with a value bound to a program field.
The data type is decimal and the length is 7 with 2 decimals. Field Formatting = Number.
1. If the value of this field is zero or 0.00 we would like to display blank (or nothing).
2. If the value of this field is 0.42 we would like to display 0.42.
If we take the default values, the zero value is not displayed which is correct but the 0.42 value is displayed as .42
If we change the edit word to ' 0 . ' the 0.42 value is displayed as 0.42 wich is correct but the zero value is also displayed with 0.00 (here should be a blank).
If we go to keywords and type in EDTCDE(4) we cannot compile the dds source. Error CPD7554 keyword for current data type or keyboard shift not valid occurs. The field format is 7S 2H.
In the classic green screen dds sources we defined the format type Y for the numeric field and used the EDTCDE(4) which worked correctly.
According to the profound documentation, EDTCDE is supported. How can we use the EDTCDE keyword with visual designer?
If EDTCDE is not usable, how can we solve this issue?
Is it possible to use another textbox setting to achieve our goal?
Thank you very much for your answer in advance.
Christoph
We have a textbox with a value bound to a program field.
The data type is decimal and the length is 7 with 2 decimals. Field Formatting = Number.
1. If the value of this field is zero or 0.00 we would like to display blank (or nothing).
2. If the value of this field is 0.42 we would like to display 0.42.
If we take the default values, the zero value is not displayed which is correct but the 0.42 value is displayed as .42
If we change the edit word to ' 0 . ' the 0.42 value is displayed as 0.42 wich is correct but the zero value is also displayed with 0.00 (here should be a blank).
If we go to keywords and type in EDTCDE(4) we cannot compile the dds source. Error CPD7554 keyword for current data type or keyboard shift not valid occurs. The field format is 7S 2H.
In the classic green screen dds sources we defined the format type Y for the numeric field and used the EDTCDE(4) which worked correctly.
According to the profound documentation, EDTCDE is supported. How can we use the EDTCDE keyword with visual designer?
If EDTCDE is not usable, how can we solve this issue?
Is it possible to use another textbox setting to achieve our goal?
Thank you very much for your answer in advance.
Christoph