I have a pagelist (say RewardList) of length 1000 and I'm showing that pagelist in the form of a table on UI with pagination (Format: Page 1 of X where X being 5 results). I'm using the selectall checkbox which is actually selecting all the rows present on the current page. Since RewardList is 1000 rows long i.e. 200 pages, how can i know on which page the user has clicked on selectall?
I need to perform certain action as the user clicks on the 'selectall' so I was wondering if there is a way to reduce the number of comparisons. Currently I'm running a data transform where by using 'For Each Page In' action I'm checking pyselect is true or not and based on that performing the required action. But this is doing 1000 checks on RewardList which is not ideal.
***Edited by Moderator Marije to add Capability tags***
Hi @SiddharthC, I believe the value of the current page number is stored in "Param.currentPageIndex", so when you are clicking on the select all CB, can you try storing this value in a property and then perform your required actions accordingly?