How to pass parameters to report definition which are set dynamically
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.
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.
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.