pySelectedcheckbox is getting selected in the repeat grid when the checkbox is selected in the first page. Then, during the navigation of next pages still the pySelected checkbox remains selected automatically even though user not yet selected.
Steps to Reproduce
1.Create Data table with more than 20 records in it. 2. Create a new Page List with the help of Data Page which is being created by Data Table creation to load the data into Page List from Data Page. 3. Create a Case. 4. In the section add a repeat grid and source as created Page List property. 5. Add the page navigation to the repeat grid with 10 records per page. 6. In the repeat grid, add the created properties of Data page which contains one boolean property with checkbox. 7. Now make this checkbox with .pySelected from baseclass and make sure the repeat grid layout is 'Editable always'. 8. Run the case select the pySelected checkbox to select all the records. 9. Now navigate to second page using page navigation and one can observe the pySelected checkbox is being selected by default but the records in next page are not being selected.
pySelected checkbox property is not set properly during page navigation so user needs to do customization to achieve the requirement.
Perform the following local-change: In order to implement the pySelected checkbox property to be checked or unchecked properly during page navigation user had implemented the below steps:
Open pyPostGridUpdate activity from the @baseclass and save as a new copy into our current ruleset with same/different name, here i used same name pyPostGridUpdate.
Remove the all steps which are available in pyPostGridUpdateactivity.
Add the below local variables in parameters of the activity which are required to process the looping of page list and set the pySelected checkbox value correctly based on checked status of available records in the current page,
Add the step1 with Property-Set method with below initializations, here .NewList is the Page List which is being used in the repeat grid.
Add the step2 with Property-Set method with below initializations,
Add step3 with Property-Set with below initialization,
In the repeat grid properties, set pyPostGridUpdateactivity from the ruleset in run activity after grid update process as shown below,