Show total selected item from datagrid1

0
How do i get and show total selected item from datagrid1. I try to get a total of selected item from datagrid1 to show in data view to show that  how many items are selected to acknowledge before their proceed any action. because many time user proceed delete action but they didn't know how many record they operating with. I'd found some solution on datagrid2 but I didn't prefer to using datagrid2 in this, cause User prefer to using another feature on datagrid1.
asked
1 answers
0

Hi Vichian Pattarakeeratiworrakul,

           You can achieve this by using a helper entity and a custom button. When users select items in the DataGrid and click your custom “Acknowledge” or “Proceed” button, the microflow behind that button can take the list of selected objects as input. Inside the microflow, you can use the  "list length" function to get the total number of selected items (for example,"length($selectedList)" ). Then, store this count in an attribute of your helper entity and refresh the data view that shows it. This way, when users select items and click the button, they immediately see how many records they are about to process.

answered