Question
Self
US
Last activity: 11 Apr 2018 15:07 EDT
Problem Referencing Parameter-ized Data Page from Pega JSP tags
Processing Data Pages in HTML (Rule-Obj-HTML) using Pega JSP Tags works as expected for Data Pages that do not use parameters, i.e., a Data Page works like any other clipboard page:
<pega:withPage name="D_InterestedParties">
<pega:forEach name=".pxResults">
<pega:withEmbedded name="$this" >
<pega:reference name=".PartyName" />
<pega:reference name=".PartyType" />
</pega:withEmbedded>
</pega:forEach>
</pega:withPage>
But what if the Data Page does have parameters?
Pega JSP tags like <pega:reference/> or <pega:withPage/>, etc., don't seem to like the D_DataPageName[ParameterName:"value"] parameter syntax (https://docs-previous.pega.com/use-parameters-when-referencing-data-page-get-right-data).
For Example
A reference tag <pega:reference name='D_TestCPL[Param1:"TEST"].pxResultCount' /> gives the error
Section 'TestDP' execution error on page 'pyTempPage' of class 'Work-'. : The reference D_TestCPL[Param1:"TEST"].pxResultCount is not valid. Reason: declare page parameters not supported by PropertyReference
Similarly a reference to <pega:withPage name='D_TestCPL[Param1:"TEST"]'> gives the error
Processing Data Pages in HTML (Rule-Obj-HTML) using Pega JSP Tags works as expected for Data Pages that do not use parameters, i.e., a Data Page works like any other clipboard page:
<pega:withPage name="D_InterestedParties">
<pega:forEach name=".pxResults">
<pega:withEmbedded name="$this" >
<pega:reference name=".PartyName" />
<pega:reference name=".PartyType" />
</pega:withEmbedded>
</pega:forEach>
</pega:withPage>
But what if the Data Page does have parameters?
Pega JSP tags like <pega:reference/> or <pega:withPage/>, etc., don't seem to like the D_DataPageName[ParameterName:"value"] parameter syntax (https://docs-previous.pega.com/use-parameters-when-referencing-data-page-get-right-data).
For Example
A reference tag <pega:reference name='D_TestCPL[Param1:"TEST"].pxResultCount' /> gives the error
Section 'TestDP' execution error on page 'pyTempPage' of class 'Work-'. : The reference D_TestCPL[Param1:"TEST"].pxResultCount is not valid. Reason: declare page parameters not supported by PropertyReference
Similarly a reference to <pega:withPage name='D_TestCPL[Param1:"TEST"]'> gives the error
Section 'TestDP' execution error on page 'pyTempPage' of class 'Work-'. : invalid page name: D_TestCPL[Param1:"TEST"]. Details: Invalid value for aName passed to com.pega.pegarules.data.internal.clipboard.ClipboardPageImpl.setName(String).