Question
Morgan Stanley
IN
Last activity: 24 Oct 2016 7:32 EDT
pega:forEach JSP: Unable to retrieve data from an embedded page inside the looping page
My requirement is to loop through a pagelist and display label in the Address embedded page.
Below is the sampe code which I have used:
<pega:forEach name=".Customers">
<pega:reference name="$THIS.Address.pyLabel" /> --Does not fetch any data.
--But tools.getPrimaryPage().getPage("Address").getString("pyLabel") displays the value
</pega:forEach>
How should i access pyLabel property inside Address. Customer and Address have a one-to-one mapping.
***Updated by moderator: Lochan to update Categories***