Dynamic columns and fetching property reference values:(How to get values from parent loop, in second loop we have property which
<%tools.putParamValue("ConditionTable",tools.getStepPage().getProperty(".SheetName").getStringValue().trim()); int count=0; %> <TABLE> <TR style="font-weight:bold; border:1px solid"> <pega:forEach name="D_ExcelTemplateList.pxResults"> <TD style="border:1px solid; text-align:center;padding:2px 2px 2px 2px;word-wrap:break-word"> <pega:reference name="$THIS.ColumnName" /> </TD> </pega:forEach> </TR> <pega:forEach name=".PriceItems"> <TR> <pega:withEmbedded name="$this" > <pega:forEach name="D_ExcelTemplateList.pxResults"> <TD> <pega:reference name="$This.PropertyReference"/> (How to get values from parent loop, in second loop we have property which we need value from above loop ) </TD> </pega:forEach> </pega:withEmbedded> </TR> </pega:forEach > </TABLE>
<%tools.putParamValue("ConditionTable",tools.getStepPage().getProperty(".SheetName").getStringValue().trim()); int count=0; %> <TABLE> <TR style="font-weight:bold; border:1px solid"> <pega:forEach name="D_ExcelTemplateList.pxResults"> <TD style="border:1px solid; text-align:center;padding:2px 2px 2px 2px;word-wrap:break-word"> <pega:reference name="$THIS.ColumnName" /> </TD> </pega:forEach> </TR> <pega:forEach name=".PriceItems"> <TR> <pega:withEmbedded name="$this" > <pega:forEach name="D_ExcelTemplateList.pxResults"> <TD> <pega:reference name="$This.PropertyReference"/> (How to get values from parent loop, in second loop we have property which we need value from above loop ) </TD> </pega:forEach> </pega:withEmbedded> </TR> </pega:forEach > </TABLE>