92
Views
3
Comments
Solved
[OutSystems Data Grid] Calculated Column doesn't show more than 2 Decimal places
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive
Service Studio Version
11.53.20 (Build 61431)

Hello everyone,

Today while implementing Data Grid on my current project I encountered a problem with the customization of the Decimal Places in the Calculated Columns. I installed the sample on my personal environment but even there and after trying to choose a static value or using the range slider, as it is shown, the Decimal Places never went past 2.

I have attached a print screen where you can see the two columns used in the calculation with 5 decimal places but the calculated column always rounds up to two.

As anyone faced this issue or is this a problem with the Data Grid itself?


Thanks for all the help in advance.


2022-11-12 11-28-30
Gonçalo Martins
Staff
Solution

Hello @Mário Pedrosa 

Thank you for reaching out. 
This is an identified issue that on a future release will be fixed under the code ROU-3891.

As a workaround you can run the following script in the Grid (not the page) on initialize event (in this case for 4 decimal places):

OutSystems.GridAPI.ColumnManager.GetColumnById('MyCalculatedColumn').provider.format = "n 4";

Cheers,
GM

2022-11-12 11-28-30
Gonçalo Martins
Staff

Hi @Mário Pedrosa. Any update on this?

2021-06-22 14-07-00
Mário Pedrosa

I am still going to to implement your temporary fix but thank you in advance for the help!

Best regards,

Mário Pedrosa

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.