Question

4
Replies
4790
Views
Frank Marra (MARRF)
PEGA
Sr. Industry Architect, Public Sector
Pegasystems Inc.
US
MARRF Member since 2010 1 post
PEGA
Posted: March 20, 2018
Last activity: April 11, 2018
Posted: 20 Mar 2018 14:11 EDT
Last activity: 11 Apr 2018 15:07 EDT
Closed

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://pdn.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://pdn.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).

How can one access parameter-ized data pages from Pega JSP tags?

Low-Code App Development Case Management Data Integration User Experience
Moderation Team has archived post, 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.