Question

4
Replies
10035
Views
Close popover
Chakri Payyavula (ChakriP8)
Accenture

Accenture
US
ChakriP8 Member since 2014 65 posts
Accenture
Posted: November 17, 2018
Last activity: December 3, 2018
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,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.