Question
Stella
US
Last activity: 23 Dec 2019 16:36 EST
Select all rows of a grid for all pages and all filters
I have a grid where the first column has a checkbox for selecting the row. I also have a checkbox in the header of the first column. When the column header checkbox is clicked I wish for every row show on every page to be automatically selected. If a column in the grid is being filtered I only want those filtered rows to be selected and for every page. One way I tried was to call an activity upon clicking of the checkbox and programmitically setting pySelected for each row on the clipboard but when a column is filtered this won't work. It will have selected all rows, not just the filtered ones. I have come across a number of questions on this but seemingly no answers that I can tell. How can I accomplish what I am trying to do?
***Edited by Moderator: Lochan to update platform capability tags***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
OOTB "Bulk actions" feature also has similar setting on selecting all rows of a grid.
To see the details, you can launch Case Manager Portal, click on operator and select 'Bulk actions' and then select 'Process', a table with cases will be displayed. The first column has a checkbox for selecting the row. There is also a checkbox in the header of the first column which is used to select all rows.
Stella
US
It only selects all rows on the current page. It does not select all rows on all pages
BPM Company
NL
You filter out rows by some condition, right?
Just use the same condition in the activity you mentioned
Stella
US
I filter out rows by making selections in the column header filter. There are some clipboard pages storing the filter criteria when a user sets filters on a column header. It looks rather complex. Perhaps I could analyze what pega is storing on the clipboard for the filter criteria and programmatically figure out what the user actually filtered but not sure.
BPM Company
NL
That looks like a right direction to go.
Stella
US
Wow. So there really isn't a good way to do this in Pega
TCS
US
For filtering and selecting the rows in the grid, you would need a custom pagination activity(don't see an simpler OOTB option) in the grid which can be specified in the Table(grid) properties in General tab.In the pagination activity, you have to copy the filters to a temp page and call your report definition which can filter the results.
Refer this pagination activity "pzQueueItemsPaginate" referred in section rule "pxQueueStatusItems" in pega 8. Pega uses these in re-queuing items in Admin studio. In this section it filters and selects only the filtered row.
Pegasystems Inc.
US
Which version of Pega are you on? I will try to look for some options for you. Thanks!
Stella
US
8.1.7 but we'll be upgrading to 8.3.1 soon
Pegasystems Inc.
US
Also, you please review this post, not an exact requirement, but a similar scenario -
https://collaborate.pega.com/question/select-all-checkbox-remains-selected
Thank you
Stella
US
Ive been able to get around that issue by copying some functionality used in BulkProcess but it still doesn't solve my issue of selecting all rows on all pages
-
Enguerrand ARMINJON