Hi.
I have this application I am developing that has a Funds Allocating for Supervisors.
This Entity named Supervisor_Funds has an association with the Accounts Entity which the end user can select The Supervisors from a reference selector. I have used an Xpath constrain to to only show users of the Supervisors Role in the reference selector. It works ok.
But what I need is to total the Allocated funds amount under each supervisor name and show them in another grid.
I used a microflow to Retrieve the Accounts by association to get a list of funds, then I used a Aggregator to sum the funds. Then used a create object to Add a new object in another Entity named Total funds. The microflow executes in The after commit of the Supervisors_funds.
But what I can't get is to total the funds under each name. Instead I get a total funds in a new line. With the name of the Supervisors. Then when I run the microflow again it creates another new line in the Grid of the total funds entity.
What I want is to sum the funds each under the name of the Supervisors, but not create a new line each time.
Example say I have Pamala and John. I don't need to see two lines of Pamalas each time I add a new fund to Pamela, instead I need is to Add the new added funds to the same line of Pamala.
It works well on an Entity i had in a another application for inventory management. Where I count the total qty of tools of a single category and used an edit object to edit the qty in the Tools_Category entity.. It had two Entities Tools_Category and New_tool_purchase. And they are associated. I sum the new qty of tools and used an Edit_Object to modify the NrofTools in the Tools_Category Entity. It works.
But on my new case for the funds, it is different, the association is from the Accounts Entity, And that is similar to the Tools_Category in the previous application, but I can't and don't need to modify the Accounts Entity with custom attributes for my application, I only used a the Accounts Entity to Retrieve the Usernames of Supervisors.
Please Help. Any help is useful. I am confused here
Regards