Question

144
Views
Close popover
John Talbot (TALBJ)
PEGA
Sr. System Architect
Pegasystems Inc.
JP
TALBJ Member since 2010 19 posts
PEGA
Posted: November 5, 2019
Last activity: November 5, 2019
Closed

Declare index on PageList

Client is looking to move to Amazon Cloud (Amazon not Pega) so we are losing the UDF.

There is a report showing a value .myList(1).myValue which until now is being extracted from the blob via a UDF. Is there any way to write a declare index that knows which page number it is?

https://community.pega.com/support/support-articles/issue-declare-index-index-count says that the index count is not useable

https://community.pega.com/support/support-articles/declare-index-source-properties-referencing-parent-do-not-work says that we cannot create a declare index property sourced from .myList(1).pxSubscript to compare with our own pxSubscript to find out if we are number 1 because anything other than number 1 wouldn't know if it changed.

It would seem that the only way to do this is to create an activity that runs whenever .myList(n).myValue changes, and copy .myList(1).myValue into the work page.

Case Management
Moderation Team has archived post