Is there a property that holds the current row number in a repeat grid/grid? I need to get the current index of a repeat grid row within the loop that renders the grid rows. Is this possible? I can see in the Java that is created there are counters used so are these counters available as a Pega property?
If your requirement is to display the row numbers in the repeat grid display then there is an option in the Presentation tab of the grid properties with "Display row numbers" checkbox option. If this is not your exact requirement then kindly let us know more details about your usecase and requirement to be more clear.
As per your below requirement, you cant provide two different sources to the report definition/repeat grid. If you have any common functionality between the two PageLists then you can use sub reports and fetch the properties of pagelist2 using the common key between both the pagelists/tables.
We have a Repeat Grid whose source is a "Coverage" Page list.
We also have a separate pagelist property called "FinancialActivity" and then a MonthsPaid property on FinancialActivity and we need to display this column inside of the Coverage repeat grid
The Repeat Grid needs to display the data of .Name of the .Coverage pagelist and the .MonthsPaid of the FinancialActivity page list like this: