Question
nylife
US
Last activity: 24 Aug 2017 7:26 EDT
How to get the current row number in repeat grid
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?
***Moderator Edit: Vidyaranjan | Updated Categories***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
US
Hi Caesar,
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.
Ceaser Requirement:
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:
Hi Caesar,
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.
Ceaser Requirement:
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:
Name MonthsPaid
--------------------------------------------------------------------
.Coverage(1).Name FinancialActivity(1).MOnthsPaid
.Coverage(2).Name FinancialActivity(2).MonthsPaid
.Coverage(3).Name FinancialActivity(3).MonthsPaid
Regards
Mahesh
Pegasystems Inc.
IN
Hello,
Is your grid sourced with pagelist property ?
If so try the ".pxListSubscript" property, which is used to display the value of the row number.
Hope this helps.
Best Regards,
Mounika
-
Nitin Garg APARRNA M
United Health Groups Ind Pvt Ltd
IN
Thank you MounikaThatikonda its working....
Pegasystems Inc.
IN
Glad to know :)
MFEC
TH
Thank you !
-
Jordan Barton
Pegasystems Inc.
US
Hi Caesar,
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.
Regards
Mahesh
Accepted Solution
Pegasystems Inc.
US
Hi Caesar,
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.
Ceaser Requirement:
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:
Hi Caesar,
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.
Ceaser Requirement:
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:
Name MonthsPaid
--------------------------------------------------------------------
.Coverage(1).Name FinancialActivity(1).MOnthsPaid
.Coverage(2).Name FinancialActivity(2).MonthsPaid
.Coverage(3).Name FinancialActivity(3).MonthsPaid
Regards
Mahesh