May I know how can I retrieve the "number of selected count" value in confirmation message
- I have added checkbox, i want to get the count of selected item here.
-When I get the original count, it only shows the number of record for the list in the message box. Kindly advise (In company group page)
Hey Winnie,
Before showing the popup, inside the DeleteOnClick, you can filter the GetCompanyGroup with the expression GetCompanyGroup.List.Current.IsSelect = TrueAfter getting the filtered list you can assign the ListFilter.FilteredList.Length in the popup
Kind Regards,
Melvin
This implementation is giving below output. Please let me know if this is the expected output.
Hi,
To get the selected records number you can loop through the list and count the number of records for which its IsSelected true. Or you can Filter the aggregate list according to condition IsSelected = true. Then size of filtered list will be the count of selected items.
regards
@Melvin September @Vikas Sharma , would you mind to share the oml for my study as reference? Thanks.
Please refer below screenshot, in DeleteOnClick action you just add one filter list with IsSelected condtion. You will get list of all selected records then you can delete them directly without checking again in loop.
Just a small addition to both answers given, and maybe more a matter of personal taste than anything else, but having
IsSelected = True
will result in the same as
IsSelected
I find that just using the boolean as a condition instead of BooleanVar = True, improves readability, on the condition that a good name was choosen for the boolean, and I think IsSelected counts as a good name.
Dorine
Hi Winnie Lam,
You should replace the GetCompanyGroups.Count with DetailList.Length in the confirmation popup this will display the exact number of rows checked.
Please let me know if need more clarification.
Thanks & Regards,
Piyali
Hi Piyali , this indicator will get the full list in the page instaed of the count of selected record.