Question
Accenture
IN
Last activity: 4 Oct 2017 12:10 EDT
Issue in pySelected field in Repeating grid.
Hi,
I am facing one issue in a repeating grid pyselected field .
I am having pagination option above repeating grid in the grid 1st field is checkBox with the property "pySelected".
In a repeating grid i have an option to "select all" as soon as i select this option(Select All) it should select all the items in all the page but it is not doing that right now.
It is selecting only all the items in page one .
How to resolve this issue ? i am using 7.1.9
Please find the attachment of the screen.
Regards,
Sowmya
***Updated by Moderator Marissa to update categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi Somyashree,
This is an expected behavior in Pega when you are enabling pagination.
Kindly refer the below link to achieve your requirement:
https://collaborate.pega.com/question/repeating-grid-paging-pxcheckbox-select-all-does-not-work
Hope this helps!
Regards,
Vikash
Accenture
IN
Hi,
Thanks for your help..
I have one question over here , how "pyPreGridUpdate" will related to my Repeating grid ? because while loading grid i turned on Tracer and there is no activity is calling with the name "pyPreGridUpdate' and moreover all the steps in "pyPregridUpate" are commented (i am referring to @baseClass activity).
Thanks
Pegasystems Inc.
US
Hi Sowmya,
If you enable the "Run activity before grid" option in Layout settings > Operations tab as shown in attachment. Then the pyPreGridUpdate activity will be triggered before your grid gets constructed.
Regards
Mahesh
Accenture
IN
Hi Mahesh,
In the 10th step of "pyPregridUpdate" i have added the below step
tools.findPage("pyWorkPage").getProperty("SampleSubmissionFilter.pySelected").setValue("false");
In this case i am getting different issue .
in the first page i will select "Select All" option then all 30 items in the first page getting selected then i have to go for 2nd page then i clicked on "select all" all 30 items in the 2nd page got selected then if i check previous page that is 1st page all the 30 items got unchecked (or deselected).
Any thoughts on this ?
Thanks,
Sowmya
Pegasystems Inc.
US
Hi Sowmya,
May i know what is the source of your repeat grid? Also could you check whether all records are being fetched into clipboard or the specific set of paginated records are being fetched for each page navigation?
You can cross check this information and let me know your observations.
Regards
Mahesh
Accenture
IN
Please find the attachment.
I have tried with below code as well
tools.findPage("tempSampleSubmissionList.pxreults").getProperty("SampleSubmissionFilter.pySelected").setValue("false");
tempSampleSubmissionList.pxreults : Is a source of repeating grid.
For the above code i am getting Null Pointer Exception.
Accenture
IN
Hi,
Source of the repeating grid is "tempSampleSubmissionList.pxreults" if i mention this one i am getting null pointer exception.In clipboard i am getting all the results in TemsampleSubmissionList.
Thanks,
Sowmya
Pegasystems Inc.
US
Hi,
If you dont mind can you share the structure of your data in the clipboard to see how your page is being resided.
Regards
Mahesh
Pegasystems Inc.
US
Hi Sowmya,
I had done a small customization in the code and fixed the issue with the Select All checkbox issue using pyPostGridUpdate activity as explained in the attachment.
Kindly have a look into the attachment and have a try at your end to fix this issue.
Regards
Mahesh