Question
Cognizant
IN
Last activity: 7 Aug 2017 6:18 EDT
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***