Question

2
Replies
282
Views
JoseRico Member since 2017 4 posts
KPMG Asesores SL
Posted: September 25, 2019
Last activity: September 25, 2019
Closed

How to use property/param as an index in a forEach

Good morning all,

It is possible to use a property or param that is calculated the OfferData as an index in a foreach?

For example:

<pega:forEach name=".Customer.Bookings("<pega:reference name=.OfferData.BookingIDIndex/>").Segments">
...do....
</pega:forEach>

Where .OfferData.BookingIDIndex is a dynamic value that is calculated previously.

I have also tried with <pega:reference name=Param.BookingIDIndex>, referencing it previously but nothing.

Rgds,

Jose Rico.

Pega Marketing Low-Code App Development
Moderation Team has archived post
Share this page LinkedIn