How to calculate sum of lines in Data Table when the table is automatically being filled with data using python

Hi,

a developer is using python code in another program to occupy the data table automatically without user having to manually enter into the data table (shown as below). i am wondering how I can gather the sum of the production cost in this case without using the onchange handler. As user doesn't have to fill the data, a python program fills the table? Thank you

Hello @jyou,

You can all the code to calculate total for a table after your function is completed and the data table is populated.

I tried to use the exact same function in the code and it didn't work in that case when python program automatically fills the data table please advise .

@jyou,

Please share the code you are using.