Question
CI
IN
Last activity: 23 Apr 2024 0:36 EDT
I am facing one issue on Property control.
Hi Guys,
Actually, I am using Text input control for one of the properties. That is editable. In presentation tab editable format is number and read-only format also number I give decimal value 2.
While edit the numbers every time i need to give 0.00 decimal value it's not take automatically.
I checked the checkbox under editable format also. It's shows 0.00 but not save in clipboard.
Please help me how to solve this issue.
-
Reply
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 23 Apr 2024 0:36 EDT
Pegasystems Inc.
CA
Please find the attached screenshots
@whatComesAfterFirst(Param.Test,'.') = "" ? @whatComesBeforeFirst(Param.Test,'.')+".00" : Param.Test
Note: replace the param with your property name.
I hope this helps!
Updated: 15 Apr 2024 6:11 EDT
Tata Consultancy Services
IN
Hi @kirti,
What is the Property Type ?
Can you try Property qualifiers in Advance Tab of the Property and then give --> pyDecimalPrecision : 2
I hope this will help you
Thanks,
Ashok
CI
IN
it's not round off issue. actually property is available to edit that time we have to enter 0.00.
if we gave 123 back end it's save like 123.00
Pegasystems Inc.
CA
Can you please check Edit Input or data transform on the property changed event using this function whatcomesbefore (attached screenshot)?
CI
IN
I have a requirement that when I am entering a decimal value by default it has to add two decimal places (.00) after entering. for example, if I enter
1234 it has to become 1234.00. Not every time (.00)
Means In editable mode also I want two decimal places by default.
Pegasystems Inc.
CA
I hope you can still achieve it through the data transform based on the property change event based on your requirements. Are you facing any issues?
CI
IN
Some cases after '.' we have 1234.23 that time also it will show ".00" only.
Please let me know if I have this value 1234.23.
Thaks in advance
Updated: 18 Apr 2024 9:36 EDT
Pegasystems Inc.
CA
Ideally, you can transform the data based on your requirements with the help of whatcomesbefore and index function (attached screenshots for your reference).
CI
IN
Please help me this issue. Text Input control also we have decimal value default.
Thanks in advance!
Pegasystems Inc.
IN
Hi @kirti ,
Use integer control and in presentation tab of the configurations enable check box "Display value using read-only formatting" . And add the required formatting for read only format. On screen after entering the value on tab out from the text box then the formatting is seen.
If the property type is integer or decimal , make use of integer / number control for valid configurations.
Thank you.
CI
IN
Hi
thanks for reply.
Property control is decimal.
in presentation tab of the configurations enable check box "Display value using read-only formatting".On screen after entering the value on tab out from the text box decimal place fine on Ui but it not saved in clipboard. This is the issue I am facing.
Pegasystems Inc.
IN
@kirti - Formatting only on UI side and wont be saved in clipboard. To save the formatting need to call data transform on change of the text input. In actions tab add on change action and action as Data transform call. Apply the decimal values in the data transform to reflect in clipboard as mentioned by Ramesh in previous comments.
Thank you.
CI
IN
Yes, I tried that one also after decimal point, we have some value like 50 instead of 00 that time it will take 00.
Pegasystems Inc.
CA
Your below statement is confusing
"value like 50 instead of 00 that time it will take 00"
Could you please help us to provide the actual and expected output along with screenshots if possible? That will help us to troubleshoot your issue.
CI
IN
I am used @whatComesBeforeFirst(Primary.Subtotal,'.')+".00" this function on cost textinput by using DT .
Actually, I trying to enter 927.50 but for that function it will change 927.00.
I am attaching the screen shot. Please check and help me.
Accepted Solution
Updated: 23 Apr 2024 0:36 EDT
Pegasystems Inc.
CA
Please find the attached screenshots
@whatComesAfterFirst(Param.Test,'.') = "" ? @whatComesBeforeFirst(Param.Test,'.')+".00" : Param.Test
Note: replace the param with your property name.
I hope this helps!