Question

1
Replies
3599
Views
MattAtRuleTek Member since 2014 2 posts
General Electric
Posted: 4 years ago
Last activity: 4 years 7 months ago
Closed

<pega:forEach in <pega:forEach

I am trying to reference properties in an embedded page list that is in a page list using a forEach inside of a forEach.  Page context looks like: pyWorkPage.Policies.pxResults().TRXFlows.pxResults.

<p>

   <table>

          <tr style="border: 2px solid black;width:auto;color:black;weight:bold">

            <th style="border: 2px solid black;width:auto;background-color:lightgrey">Nature of Transactions</th>

            <th style="border: 2px solid black;width:auto;background-color:lightgrey">Name of Related Party</th>

            <th style="border: 2px solid black;width:auto;background-color:lightgrey">Amount(HUF)</th>

          </tr>

        <pega:forEach name ="pyWorkPage.Policies.pxResults">

          <tr style = "border: 1px solid black">

           <td style = "border: 1px solid black;width:auto; text-align: left">

             <pega:reference name="$this.ProductName"mode="normal"></pega:reference>

           </td>

             <pega:forEach name="$this.TRXFlows.pxResults">

           <td style = "border: 1px solid black;width:auto; text-align: left">

               <pega:reference name="$this.BUYER_SD_NAME"mode="normal"></pega:reference>

           </td>

           <td style = "border: 1px solid black;width:auto; text-align: left">

               <pega:reference name="$this.TotalAmount"mode="normal"></pega:reference>

           </td>

             </pega:forEach>

          </tr>

          <tr style = "border: 1px solid black">

           <td style = "border: 1px solid black;width:auto; text-align:left">Subtotal Amount</td>

           <td style = "border: 1px solid black;width:auto; text-align:right">

             <pega:reference name="$this.TotalAmount"mode="normal"></pega:reference>

           <td style = "border: 1px solid black:width:auto; text-align:right">

           </td>

           </td>

          </tr>

         </pega:forEach>

     </table>

</p>

My resulting page does not show BUYER_SD_NAME or TotalAmount for the second embeded page group

Is there another tag I can use or am I referencing the page incorrectly?

User Interface
Moderation Team has archived post
Share this page LinkedIn