Goal:
I have a table component with editable columns. I would like the user to be able to input values into a cell in the table component, and the custom column dynamically shows the new calculated value.
In the custom column, I put this as the datasource, the idea is that column A * (columnB/ColumnC):
Hello there!
It's not recommended to use inline JS if you want to perform calculations. It would be better to use a JS Transformer (documentation here), and to set the data source of the custom field to that JS Transformer that you create. That should do the trick!
I'll echo the above recommendation! It's generally easier to maintain JS code in a transformer, too. That said, there's no reason that doing it this way won't work.
Is the cell just not updating when you make changes to the table? Or is it throwing an error?
hey Darren!
Initially it was showing the dynamic values (so if i would change any of the values in the relevant columns), it would change the custom column.
Now its not showing anything in the column.