Question
1
Replies
75
Views
Posted: July 20, 2020
Last activity: July 21, 2020
How to use a data page as a parameter in pega forEach
As part of a custom control, I've tried doing this code with "D_Sample.pxResults"(including the double quotes) as a parameter, but it doesn't seem to work.
<%
String paramDP = tools.getParamValue("dataPage");
%>
<script>
<pega:forEeach name="<%=paramDP%>" >
<pega:withEmbedded name="$this-value">
--codes here--
</pega:withEmbedded>
</pega:forEach>
</script>
Any ideas how I can use data page as a parameter in a pega forEach?
Hello ,
Can you try adding the data page results to the Pega foreach tag as below.
<pega:forEach name ="D_Sample.pxResults">
Hope this helps.