Question

1
Replies
3735
Views
Close popover
Matthew Walters (MattAtRuleTek)
General Electric

General Electric
US
MattAtRuleTek Member since 2014 2 posts
General Electric
Posted: February 5, 2016
Last activity: February 5, 2016
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 Experience
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.