Question

3
Replies
2987
Views
Mirunalene Member since 2016 5 posts
Cognizant
Posted: 3 years ago
Last activity: 3 years 2 months ago
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 Interface
Moderation Team has archived post
Share this page LinkedIn