Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 81210

Count the Total number of items in a list at ONCE, categorizing each item to a category.

$
0
0

Hi..

 

I know this should be very simple to achive. Its just  can't get it done. Please try to help me as much as you can. Here is my problem.

I have a Product List in an entity called "Final_Bill_Item_Info" which holds the Quantity of the products.  This Entity is associated to another enity called "Service_Items" which holds the product name. Now what i want is to Calculate the total quantity of Products in the "Final_Bill_Item_Info" categorising to the product name and update that information on another enity called "Test_Stock_2" .

I have the folllowing microflow that works ok when run as an after commit and after delete event of the "Final_Bill_Item_Info" Entity.  The microflow updates each product quantity categorizing to the product name in the "Test_Stock_2" Entity.

 

 

 

But what I want is to calculate the same via an Action Button.

When I run the microflow via an action button, only ONE Category name is updated in the "Test_Stock_2" entity.  It works if I place the Action Button in the tool bar of a Data Grid of the "Final_Bill_Item_Info" Entity. But again It only updates the selected Product in the data grid, NOT all of them at once.

Is there any way, that I can update all the products at once via an Action button??

** I have also used the "Äggregate" fuction instead of the "Loop", but the result is the same...

 

Please HELP?

Dylan


Viewing all articles
Browse latest Browse all 81210

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>