Eranda10274
(Eranda Weerasingha)
June 2, 2023, 11:26am
1
Hi Team,
I am trying to call Report Definition from Activity, so it’s done and data come to clipboard
my question is when data come to clipboard how can i map that data to my property .
in here i want to map data to DescriptionTemplate (textArea) ,
cpv_description value i want to map to DescriptionTemplate, how can I do it
@Eranda10274 You can set like below in the 3rd step
.DescriptionTemplate pyReportContentPage.pxResults(1).Cpv_Description
Best practice is to hit the Report definition using data page(List). Dpage->Report definition. In that case,
.DescriptionTemplate D_YourdpageList.pxResults(1).Cpv_Description
Eranda10274
(Eranda Weerasingha)
June 2, 2023, 2:26pm
3
@Anoop Krishna I had tryied this way , but I got this error
@Eranda10274 Please define the page is pages and classes
pyReportContentPage Code-Pega-List
pyReportContentPage.pxResults FBM-Data-MenuDefinitions
uashok93
(Ashok Kumaresan)
June 4, 2023, 7:58am
5
@Eranda10274
check if the Page name is defined in the parameter (pyPageName) in the step1 Property-Set . The results are stored in the Page. You can use this page to set the values.
abhiraj
(Abhiraj Gupta)
June 5, 2023, 8:48am
6
@Eranda10274 OOTB activity pxRetrieveReportData have some param which we set before calling it. One of the param this activity have is param.pyPageName, it is used to populate report definition data.
Set this param along with the other 2 required params & use the page which you have defined for param.pyPageName to get the data of RD.
Let’s take an example: you gave TempRDData to param.pyPageName.
Define TempRDData as Code-Pega-List & TempRDData.pxResults as the class of your RD
For further mapping you can loop over TempRDData.pxResults and set the columns values to respective properties
Motukatla
(Motukatla Harsha Vardhan)
June 3, 2023, 11:45pm
7
@Eranda10274 bro instead of property set use Page copy from pyReportContentPage.pxResults() to Page.pxResults()
in pages&& Class define page= code-pega-list and Page.pxResults=your class and i think your problem is solvedbut
if your want use property set method use Append and along with last sub scripts