简体   繁体   中英

Pass parameters to report definition using activity. Pega8.6

I have created a report definition under -Data layer and I have set parameter there as a filter.

报告定义

Now, I want to call this report under work layer and pass the parameter using activity.

活动

How can I do that?

Well best practice is to call that Report Definition through a parametrized Data Page if parameters are very few.

Any way you can still pass those parameters to any called Activity by using bellow steps.

  1. Create one Property-Set method before calling report definition and set these parameters.

    Param.pyReportName = "YourReportName"

     Param.pyReportClass = "YourReportClass" Param.pyPageName = "PageName" Param.GradeParameter = "ValueOfGradeParameter"
  2. Now call the report calling activity(your 6th step) with Pass current parameter page check box checked. By checking this check box you can pass all the parameters to the called Activity which you set in the main Activity .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM