Calculate variable in a datagrid

0
Hi there, there is project entity (main) and a controlling entity (sub) with a one-to-many association. In my page I have a Dataview with “project” entity. Inside that dataview there is a datagrid with “controlling” entity over association with “project”. In my page I add some datavalues to the datagrid. Now I want to calculate (sum) all these values depending on the mainentity “project” in the datagrid automatically (I need this variable for further use). Thanks.
asked
5 answers
2

Hi Daniel,

You can add a calculated attribute in project entity and do your calculations in the microflow of the calculated attribute. 

answered
1

Hello Daniel,

There are a few ways of doing this:

  1. In your add/remove MF update your project’s corresponding value and refresh it in client
  2. Have a calculated attribute on your project entity, make sure to refresh the project when you add/remove objects

Hope this helps

answered
0

Hi Dragos, Hi Mohammed,

how should the microflow look like?

answered
0

ok thanks for that, but how can i set the association between parent and childentity. I want to sum all values for each “project”.

answered
0

Anybody knows???

answered