In the screen designer, you can dynamically transform data in columns. This can help when the data stored in the table, does not match the format you’re hoping to present to the user. In this example, we will highlight how we manage to convert a ‘duration’ stored in a Workcenter History table in Milliseconds, to Minutes, and also round the value to 2 decimal places. You can also dynamically add text to these cells like “uom” by changing the display type to text, rather than an integer or float.
Best Practice: IF you need to perform transforms on your data, whether in a Table, Form, Cards or otherwise - it is best if you do this at the ‘top level’ of the component. Meaning, while we give details on how to transform data within a single table cell, we suggest doing this at the Table (Data Transform) as your screen will perform better.
In doing this operation we are not modifying the data as its stored in the table - only when displayed. Keep this in mind when building reports, if you aggregate raw data - it maybe a higher precision than what you are displaying and therefore may appear to be incorrect.
In this example, the “duration” data stored in the table is a float value - we need to change the display from ‘float’ to ‘text’ otherwise the “Min” we want to display will not appear in the table. The transform will still perform the calculation however. Find this option under General>Format for the cell.
End Result: