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
Daniel Leuthe
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
Mohammed Siddiqui
1
Hello Daniel,
There are a few ways of doing this:
In your add/remove MF update your project’s corresponding value and refresh it in client
Have a calculated attribute on your project entity, make sure to refresh the project when you add/remove objects
Hope this helps
answered
Dragos Vrabie
0
Hi Dragos, Hi Mohammed,
how should the microflow look like?
answered
Daniel Leuthe
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”.