Decimal input number - Problem with decimal part

Hi everyone,

We are having some trouble trying to make a decimal input number on Pega version 8.6.3.

In order to test it without any influence from our development we used a new Data Caputre>Decimal with property “.pyTempDecimal” as following:

Presentation Tab:

Presentation Tab has as Edit Options “Auto” and Read-Only Value “Property Value”.

“Actions” tab is empty.

Insertion on this input works fine on whole number part but in decimal part whatever input you use the cursor also make a movement to the right.

F.E:

  • The number is 123,45 if I put the cursor between 4 and 5 and I insert 33 the result is 123,4353
  • If I put the cursor between 4 and 5 and press a movement to the left it immediatly move back in the starting position

We tried the same thing on Pega 8.1 and it works fine so my guess is that something changed on pxNumber control (or Cosmos) but everything I tried in this direction didn’t work.

In conclusion what we need is to develop and input decimal number that has fixed decimal places (rounding is fine).

@DiegoC21 ,

Can you please share the screenshots of the issue as attachments? The inline images are not visible.

Thanks

Dipti Aggarwal

Hi @aggad,

Thank you for your answer ! I just added the attachments to the issue.

Have a nice day!

Diego

Hey @DiegoC21,

Thanks for the update. This is a known Pega Bug fixed in the 8.6.6 release. Meanwhile, try adding the attached script to UserWorForm or create a text file (js) and attach it to the portal harness.

Let me know if it helps!

Thanks

Dipti Aggarwal

Bug-722397 Workaround Script.docx (13.3 KB)

Hey @aggad, sorry for the late feedback.

We choose to follow the “UserWorkForm” path and the script you gave me works fine.

Thank you very much!