Question1Replies75Views×Close popovererick orosco (eoro34) ACN ACN PH View ProfileSend Message eoro34 Member since 2018 15 posts ACN Posted: July 20, 2020Last activity: July 21, 2020Posted: 20 Jul 2020 20:03 EDTLast activity: 21 Jul 2020 4:25 EDT How to use a data page as a parameter in pega forEachAs 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? Pega Platform 8.4 User Experience ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Posted: 7 months agoPosted: 21 Jul 2020 4:25 EDT×Close popoverPriyanka Boga (bogap) PEGA Technical Solutions Engineer Pegasystems Inc. IN View ProfileSend Messagebogap PEGA replied to eoro34Hello ,Can you try adding the data page results to the Pega foreach tag as below. <pega:forEach name ="D_Sample.pxResults">Hope this helps.