简体   繁体   English

使用活动将参数传递给报告定义。 Pega8.6

[英]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.我在-Data层下创建了一个报告定义,并将参数设置为过滤器。

报告定义

Now, I want to call this report under work layer and pass the parameter using activity.现在,我想在work层下调用此报表并使用活动传递参数。

活动

How can I do that?我怎样才能做到这一点?

Well best practice is to call that Report Definition through a parametrized Data Page if parameters are very few.如果参数很少,那么最佳做法是通过参数化Data Page调用该Report Definition

Any way you can still pass those parameters to any called Activity by using bellow steps.您仍然可以使用以下步骤将这些参数传递给任何被调用的Activity的任何方式。

  1. Create one Property-Set method before calling report definition and set these parameters.在调用报表定义之前创建一个Property-Set方法并设置这些参数。

    Param.pyReportName = "YourReportName" Param.pyReportName = "你的报告名称"

     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.现在调用报告调用活动(您的第 6 步)并选中Pass current parameter page复选框。 By checking this check box you can pass all the parameters to the called Activity which you set in the main Activity .通过选中此复选框,您可以将所有参数传递给您在主Activity Activity

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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