Question
Tech Mahindra
CA
Last activity: 19 Apr 2018 6:42 EDT
How to pass parameters to report definition which are set dynamically
Hi,
We have a requirement in pega 7.3.1 to show report definition on select of drop down value. Parameters are to be set dynamically basd on value selected in drop down and these values should be passed to report definition but values are not passed.
Tried the following approaches:
1. On change of drop down, in actionset call activity to set parameters and 2nd action is call report definition by passing params.
2. On change of drop down, in actionset show harness with pre activity to set params and display section from report definition results in harness with param page passed to RD.
3. On change of drop down, in actionset call activity to set parameters and call report definition from this activity by passing params. But results are not displayed on the screen.
Please suggest how to achieve my requirement.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
In the 3rd approach mentioned above after calling the report using pxRetrieveReportData. in the next step call displayReport activity with the step page as results page of report (i.e.Param.pyPageName passed to pxRetrieveReportData )
On change of dropdown value, it you want to show the report results in a seperate window. Use open url in window and in the pre processing activity do the above steps.
-
c dimeria
Tech Mahindra
CA
Thanks Vanna.
I tries the approach but still report is not getting displayed. Please see screenshot as below
Thanks,
Naveen
Pegasystems Inc.
IN
have you tried open url in window approach?
What is it showing in the popup? blank or some error?
Does TempWLResultsPage have the results?
Tech Mahindra
CA
Hi Vanaa,
Tried open URL in window also but no pop and no error but TempWLResultsPage page holds required results in the clipboard.
Thanks,
Naveen
Pegasystems Inc.
IN
Open url in window should launch a new window. Is pop blocker blocking the window?
Try running the activity individually and check if its working.
Tech Mahindra
CA
Thanks Vanaa.
If the activity is run individually, results are displaying on the screen but if it is called from UI control results are not displaying. If the report definition is called directly from UI action set, results are displaying in current window and as well in pop up depends on configuration.
But if the report definition directly called from UI control, params which are set in activity are not passed to report definition. I just want to confirm if it is bug or it is the behavior in the pega 7.
Regards,
Naveen
Pegasystems Inc.
IN
you should'nt call the report definition directly from the UI control, as you will not be having the parameters set in the activity.
Call only one activity from ui control, which calls the report definition and displays the content using 'displayReport' activity.
Tech Mahindra
CA
Hi Vanaa,
I did the same, called RD from activity by passing page name and called 'displayReport' on this page but this option also did not work.
Thanks,
Naveen
Pegasystems Inc.
IN
Ideally it should work, if the pass current parameter page is checked. Once trace the activity and check what are the params that are being passed to report definition.