Question

3
Replies
3116
Views
Close popover
Mirunalene Muthukkumar (Mirunalene)
Cognizant
Senior Pega Developer
Cognizant
IN
Mirunalene Member since 2016 7 posts
Cognizant
Posted: July 18, 2017
Last activity: August 7, 2017
Closed

Loop through data page in Custom Html Section

Hi,

We have a requirement wherein, we need to have a section with grid repeat layout called in email body. Tried using insert section in email corrrespondance rule, but when the mail is received the grid format is not available as it is in UI. So trying to create a custom html section, where i can loop through the data page which loads the grid repeat layout . But I'm not getting the values for grid. PFB the code used. Is there any alternative way, we can call the data page ?

<table style="width:100%">
<tr>
<th>Name</th>
<th>Count</th>

</tr>
<pega:forEach name="D_CustomerDetails.pxResults">
<tr>
<td><p:r n="$THIS.Name" m="literal"/></td>

<td><p:r n="$THIS.pySummaryCount(1)" m="literal"/></td>
</tr>
</pega:forEach>
</table>

Thanks,

Mirunalene

***Edited by Moderator Marissa to update categories***

Low-Code App Development User Experience
Moderation Team has archived post