Question

How to refer a property value in declare page paramater value

Hi,

pega 7.2

how to refer to property value in the declare pages parameter value . for example as below when i try to pass a clipboard value as parameter input, and refer this declare page in a section, i get the error

D_GetBlahBlahValue[key:pyWorkPage.CustomerID].pyLabel

This record has
3
Errors
in
1
place

Test compilation failed: ----------
1. ERROR in /Rule_HTML_Section_szxczccStream_20191204T205917_622_GMT.java (at line 1772)
cellPage.putString("pyValue","#~"+pega_uiengine_harness.pzConvertToRDLIndex(tools.getProperty("D_GetBlahBlahValue[Key:pyWorkPage.pyID].pyLabel").getReference(),"")+"~#");
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error on tokens, delete these tokens
----------
2. ERROR in /Rule_HTML_Section_szxczcc_Stream_20191204T205917_622_GMT.java (at line 1792)
ct_controlAction.trackValueChanges(tools.getProperty("D_GetBlahBlahValue[Key:pyWorkPage.pyID].pyLabel"), -1);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error on tokens, delete these tokens
----------
3. ERROR in /Rule_HTML_Section_szxczcc_Stream_20191204T205917_622_GMT.java (at line 1816)
pxDisplayText_1("D_GetBlahBlahValue[Key:pyWorkPage.pyID].pyLabel",64,"","","Text");
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Syntax error on tokens, delete these tokens
----------
3 problems (3 errors)
Compile failed.

Help is highly appreciated...

***Edited by Moderator Marissa to update platform capability tags****

Correct Answer
December 11, 2019 - 7:10am

you cannot refer a property on parameterized datapage directly in section. But 1 way to do this is create a section and add the properties that you want to display. Now embed this section in the parent section and use the page context of the data page , here you can pass your parameters. It will work

Comments

Keep up to date on this post and subscribe to comments

Pega
December 11, 2019 - 7:10am

you cannot refer a property on parameterized datapage directly in section. But 1 way to do this is create a section and add the properties that you want to display. Now embed this section in the parent section and use the page context of the data page , here you can pass your parameters. It will work