Question

6
Replies
375
Views
ChakriP8 Member since 2014 62 posts
Accenture
Posted: 5 months ago
Last activity: 1 month 1 week ago

Removing certain Pages in a PageList based on a condition

I am looping through Attachment Categories in a PEGA pyGetListOfAttachmentCategoriesWrapper Activity and I set .pyNote as shown below 

set pyLabel

my clipboard page is pyCategoryList.pxResults is as shown below

 

PageList Loop

 

How can I remove all pyCategoryList.pxResults except for say CategoryList.pxResults(3) when a certain condition is met which I am checking as shown below?

 

Index error

 

I am using Page-Remove and pyCategoryList.pxResults(<CURRENT>) as shown above.

I am getting the following Indexing error on my tracer

' java.lang.IndexOutOfBoundsException: The Reference pyCategoryList.pxResults(4) is not valid.'

Any help would be appreciated.

 

 

***Edited by Moderator Marissa to update General to Product***  

 

Pega Platform Low-Code App Development Dev/Designer Studio Insurance Senior System Architect
Share this page LinkedIn