Posted: 20 Feb 2019 13:05 EST Last activity: 16 Mar 2019 12:23 EDT
how to get data instances of concrete class using report definition?
I have an requirement where i need to have a parameterized report definition. When i pass concrete class name as Param , i need to fetch the associated data instances of that class. Please let me know whether this requirement can be achieved using report definition, if it is not possible through Report definition, suggest me any other way if possible.
Thanks in advance!!!
***Edited by Moderator Marissa to update platform capability tags****
I don't think that is possible since the report runs on the class where the Report Rule is saved, unless you have multiple objects with different object class values stored on the same table.
If that is the case then you can add a filter for the column where you're storing the object class in your report definition filter. (Check Attachment)
Other than this, you can use the OOTB activity "pxRetrieveReportData". This rule only needs to specificy the name and the class of the report to be ran. For this to work, you would need multiple reports for different classes then you pass the class parameter as the pyReportClass input for that activity.