I have an webpage in my application which contains grid with pagination that changes dynamically.
I want get data from all pages present in grid and want to save it in table.
Actually that grid appears as Html table component after interrogation and I am able to get only first page data after interrogating that table using List Windows ,Design table control of interrogation .
I want to get all pages data and filter that data with some conditions and then click on correct link from that data which will be present at any of the page from grid.
Kindly help me in this because its really urgent.
Thanks & Regards,
***Edited by moderator, Maryrita: moved to Product Support from Applications***
***Edited by Moderator Marissa to update categories***
If you can page down on the table then use that (probably bringintoview on the n+1 row would work). Collect each table, add them to a long single string, use stringutils to parse into the table structure you need.
Posted: 5 years ago
Posted: 7 Jul 2017 9:43 EDT
Thomas Sasnett (ThomasSasnett)
Lead Robotics Architect
Pega Robotics will only match and be able to access the controls that are present within the application. Depending on how the pagination works, you will need to trigger that until you have detected that you are at the end of the table. As each "table" is created/destroyed, you'll need to record the contents to somewhere else (I would advise you to use the LookupTable component from the Advanced tab in the Toolbox).
Create a LookupTable and add all of the columns you require to it.
Create an automation that records the table data you need to a the LookupTable you created in the previous step by calling the AddRecord method.
Create another automation that handles the pagination.
When the "new" table gets created, you will call the automation from step two to record it.
When you trigger the pagination, you will likely need to wait for the table to be destroyed first before waiting for it to be created (remember that WaitForCreate is really a loop returning the instant that the IsCreated property is true).
You will need some way to determine when you are on your last page to stop recording data.