pxSubscript and pxListSubscript Properties In Pega

 

.pxSubscript   And  .pxListSubscript









Property-Set                         CasePg.Stakeholderlist


Param.Indexpurpose  = "Index_Stakeholderlist"


Param.InsIndexedKey  =  "CIGNA-CIGNAAUTO-WORK"+CasePg.pyID


local.cnt  =   .pxListSubscript


Param.IndexCount = local.cnt-1



How to get index value from pagelist? 

The property pxListSubscript will hold the index of the current page that you are in




How to get index in a pagelist during iteration

While iterating in a pagelist

Example : EmployeeList
To refer to page at that point: we use EmployeeList(<CURRENT> )
But how to get the index if we have to write some condition, like at index= nth position => achieve some logic.

Answer : pxListSubscript

Pega provides one property called pxListSubscript which is declaratively calculated and kept at each page level in a pagelist. We can use it instead of setting  a property and using it for same purpose. 





Comments

Popular posts from this blog

Frequently Used Date Expressions In Pega

pyForEachCount In Pega