Question 4 Replies 10035 Views × Close popover Chakri Payyavula (ChakriP8) Accenture Accenture US View Profile Send Message ChakriP8 Member since 2014 65 posts Accenture Posted: November 17, 2018 Last activity: December 3, 2018 Posted: 17 Nov 2018 20:43 EST Last activity: 3 Dec 2018 13:59 EST 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 Share × Close popover Facebook Twitter Linkedin Email Copy Link Copied! Moderation Team has archived post, learn more × 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. Posted: 2 years ago Posted: 19 Nov 2018 2:56 EST × Close popover Marc Lasserre (MarcLasserre_GCS) PEGA Principal Software Solutions Engineer Pegasystems Inc. FR View Profile Send Message MarcLasserre_GCS PEGA replied to ChakriP8 Hello, Can you move param.pyForEachCount into a integer in order to be able to apply the "+2" correctly. Accepted Solution Posted: 2 years ago Posted: 19 Nov 2018 3:27 EST × Close popover Pankaj Rawal (rawap) PEGA Sr Architect, Case Management Pegasystems Inc. IN View Profile Send Message rawap PEGA replied to ChakriP8 Below code should solve this issue. @String.toInt(param.pyForEachCount) + 2 Let us know if this helps :) Posted: 2 years ago Posted: 3 Dec 2018 12:58 EST × Close popover Chakri Payyavula (ChakriP8) Accenture Accenture US View Profile Send Message ChakriP8 Accenture replied to rawap This '@String.toInt(param.pyForEachCount) + 2' worked perfect. Thanks for this. But why is only param.pyForEachCount is returning the correct value. The 'pxListSubscript' and 'PageListIndex' are not returning correct values. What I am doing wrong? Posted: 2 years ago Posted: 3 Dec 2018 13:59 EST × Close popover Rajyalakshmi Bellana (RajyalakshmiB) Instellars global private limited Instellars global private limited IN View Profile Send Message RajyalakshmiB Instellars global private limited replied to ChakriP8 Hi Chakri, In when condition, you can directly give like .pyStageName==Primary.Something --> In that substep of when directly give .pxListSubscript in the right side. Remaining steps are as is. There is no parameter as PageListIndex. Alternate Solution for same requirement: In Data transform: 1.Take the Search for property in one parameter. Set Param.LookFor = Primary.StageName Or Something which you want to look for in Data page. 2.Set Param.Index = @IndexInPageList(Param.LookFor,".pyStageName",D_CaseStages.pxResults) 3.If you want to add 2 to returned index. Specify "Index" parameter as Integer in parameter tab. 4.Set Param.Test= Param.Index+2 "IndexInPageList" Method will return matching index in page list.