Question
Infosys
IN
Last activity: 15 May 2020 1:36 EDT
Repeating grid row count check
Hi All,
We are using Pega7.3. I have a page list of 20 items, and want to display in repeating grid.
For 10th item in the list I want to check if count is 10 then want to display some label besid the 10th item.
After this the page list continue displaying of the remaining items in the list.
My question is -- Is it possible to check the count and do some action in the Repeating grid.
Let me know if I am not clear
***Edited by Moderator Marissa to update Product Version***
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 15 May 2020 1:36 EDT
Blue Rose Technologies
DE
Hi,
From below discussions, it looks like pxListSubScript will give us the row number if we are using PageList. Please see if that is helpful,
https://collaborate.pega.com/question/what-property-which-holds-number-repeating-grid
https://collaborate.pega.com/question/how-get-current-row-number-repeat-grid
Pegasystems Inc.
FR
Hello,
Well I guess you can loop on the Page-List and split it eventually would that work?
Updated: 15 May 2020 1:31 EDT
Infosys
IN
Hi MarcLasserre_GCS,
Thanks for your reply.
I will be using pxListSubscript to check the count and in the column where I want to display the label based on condition, I have to include a section.
In that section, give pxListSubscript==10 visibility condition on the label.
Thank you again
Accepted Solution
Updated: 15 May 2020 1:36 EDT
Blue Rose Technologies
DE
Hi,
From below discussions, it looks like pxListSubScript will give us the row number if we are using PageList. Please see if that is helpful,
https://collaborate.pega.com/question/what-property-which-holds-number-repeating-grid
https://collaborate.pega.com/question/how-get-current-row-number-repeat-grid
-
sahul vetcha
Infosys
IN
Hi Shyju,
Thanks for your reply. The links are useful.
I will be using pxListSubscript to check the count and in the column where I want to display the label based on condition, I have to include a section.In that section, give pxListSubscript==10 visibility condition on the label.
Thank you again
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Please find the below article which might be helpful.
https://collaborate.pega.com/question/get-row-index-repeating-dynamic-layout
-
sahul vetcha
Pegasystems Inc.
US
As others have pointed out, referring to pxListSubscript may meet your exact need here. This can be used to pass into activites/DTs. However, I have not used it directly within the UI form to change display a label like you are describing. So even if it does not work at first, at least make sure passing this into an activity is showing the expected values, and then try applying that information to your unique use case.
-
sahul vetcha
Infosys
IN
Thank you very much for the suggestion.
pxListSubscript is really useful for me.