Question

4
Replies
613
Views
RazdinM9840 Member since 2018 26 posts
Pegasystems Limited
Posted: 1 year ago
Last activity: 1 year 11 months ago
Closed

Work with JSP and Clipboard

Hello
I try to transfer a value from one property to another by JSP. When I try to set the value "123" it works well.
//---------------------------------------------------------------------------------------------------------------
<%tools.findPage("pyWorkPage").getProperty(".Temp").setValue("123");%>
//---------------------------------------------------------------------------------------------------------------
But when I try to transfer property value from the property placed in a loop it does not work. I need to set in the property: “.Temp” value “$this.NameCompany” on each iteration of the loop. Below is an example of the code that I use to execute this requirement.
//---------------------------------------------------------------------------------------------------------------
<pega:forEach name="InfoForPDF.pxResults">
<%tools.findPage("pyWorkPage").getProperty(".Temp").setValue("$this.NameCompany");%>
<tr>
<td> <pega:forEach name="$this.pxPages">
<pega:reference name="$this.PolisNumber"/>
</pega:forEach>
</td>
<td> <pega:forEach name="$this.pxPages">
<pega:reference name="$this.ManagerVSK"/>
</pega:forEach>
</td>
<td> с <pega:forEach name="$this.pxPages">
<pega:reference name="$this.BeginPolisPeriod"/>
</pega:forEach> по <pega:forEach name="$this.pxPages">
<pega:reference name="$this.EndPolisPeriod"/>
</pega:forEach>
</td>
<td> <pega:forEach name="$this.pxPages">
<pega:reference name="$this.CityConclusion"/>
</pega:forEach>
</td>
</tr>
</pega:forEach>

Low-Code App Development Dev/Designer Studio
Moderation Team has archived post
Share this page LinkedIn