Question

4
Replies
7678
Views
ChakriP8 Member since 2014 62 posts
Accenture
Posted: 1 year ago
Last activity: 1 year 9 months ago
Closed
Solved

Getting the current and next index in a PageList

I am unable to retrieve the index in a pagelist using the methods described in the thread

https://community1.pega.com/community/product-support/question/getting-current-index-pagelist

The 'pxListSubscript' and 'PageListIndex' are not returning correct values. What I am doing wrong?

(FYI ... ONLY when I did not find values in Step 1.1.1 did I try step 2 and then finally step 3. Please do not assume I am overwriting the value in the final step.)

The pic below is representative of what is happening in my DT and how ONLY step 3 using pyForEachCount solved the issue.

In the code above when my when condition is true, I want to pick up the index at that point.

Only param.pyForEachCount is returning the correct value. The 'pxListSubscript' and 'PageListIndex' are not returning correct values. What I am doing wrong?

My 'TestIndexValue' is an integer property.

But when I do 'param.pyForEachCount +2' , what I see on the clipboard is 42 and not 6.

How do I increment the returned value from the pagelist index? Any insight would be appreciated.

Case Management
Moderation Team has archived post
Share this page LinkedIn