Using virtual reports in Activities
Load the specific report definition into the Clipboard, and modify the virtual instance of that report to maintain the original report unaffected. For example, use an Activity that leverages a report about sales, and then add a specific filter that applies only to the particular client to create a unique virtual report.
The original report that you load into the Clipboard becomes clipboard page, and a template for your virtual report. You modify the clipboard page that contains the data from the template.- In the navigation pane of Dev Studio, click Records.
- Expand the Technical category, and then click Activity.
- In the list of activities, select the activity in which you want to use virtual report.
- In the activity rule form, on the Pages & Classes
tab, specify the clipboard page name and the class that stores the report
definition that you want to use as a template.
For example: In the Page name field enter VirtualReport, and in the Class field, enter Rule-Obj-Report-Definition. - In the activity rule form, on the Steps tab, select the step after which you want to run the report definition, and then click Add a step.
- Load the report definition that serves as a template:
- In the Method field, specify the method or rule
that runs the report.
For example: Enter Obj-Open. - In the Step page field, enter the name of the clipboard page that you specify in 4.
- In the Method field, specify the method or rule
that runs the report.
- Modify the report definition to use it as a virtual report:
- In the lower-left corner of your activity rule form, click Add a step.
- In the Method field, enter the method name that
you want to use to modify the report.
For example: Enter Java to modify the report by using the Java code. - Click the Expand method parameters button, and then, in the Method Parameters box, update the report.
- Use the pxRetrieveSearchData activity to run the virtual
report that you modify:
- In the lower-left corner of the rule form, click Add a step.
- In the Method field, call the pxRetrieveSearchData activity by entering Call Rule-Obj-Report-Definition.pxRetrieveSearchData.
- Click the Expand method parameters button, and
then, in the Method Parameters section, provide
details of the report definition that you use as the template for the
virtual report.
For example: In the pyReportClassName field, enter the class name of the report that you modify.
In the pyReportName field, enter the name of the report that you modify.
In the pyReportPageName field, enter the clipboard page name that you specify in 4.
- In the upper-right corner of the rule form, click Save.
Previous topic Integrating with Apache UIMA Next topic Configuring Java compiler access to information