Discussion

2606
Views
Close popover
Dorottya Szeghi (DorottyaSz)
Saltech Consulting Kft.

Saltech Consulting Kft.
HU
DorottyaSz Member since 2017 1 post
Saltech Consulting Kft.
Posted: July 3, 2018
Last activity: July 3, 2018
Closed

Using < CURRENT > keyword in a nested for-each loop

Implementing "For Each Page In" inside another for each in a data transform doesn't handle the outer loop's indexing. The <CURRENT> keyword references the most-inner loop's Param.pyForEachCount value and ignores the other ones.

Workaround:
In the outer loop set the Param.pyForEachCount value to a param and when needed use the newly created param for indexing.

Pega Academy
Moderation Team has archived post