Run Report via Pega Web mashup
Hi All,
I have a requirement where I will have to run a report(Something similar to WorkList) but this needs to be done in Mashup.
As per my understanding the code that designer studio generates includes case creation,"createNewWork" is the action. I do not want to create a case for my requirement as just to run a report I believe creating a case would be unnecessary.
Please help me achieve this asap. I am working on Pega 7.3.1.
Thanks in advance :)
***Edited by Moderator: Lochan to update platform capability tags***
Hi,
The gadget that gets generated from a work object type inside of PRPC is going to use a gadget action of "CreateNewWork".
You can just change it to use the gadget action of display. If you look at the gadget code generated you probably have three attributes that look like this:
data-pega-action ='createNewWork'
data-pega-action-param-classname ='PegaSample-Task'
data-pega-action-param-flowname ='BasicProcess'
to Change to display a harness:
data-pega-action ='display'
data-pega-action-param-classname ='<HarnessClass>'
data-pega-action-param-harnessname ='<HarnessName>'
Then, as already mentioned, the harness you are displaying can embed the report.
Hope this helps,
--Chris