Report Viewer Parameter lookup

We have a report viewer that is used to switch between different reports. Right now the window is setup to just show 2 different report viewers and we are wanting to just use 1 viewer and switch the path dynamically. This is no problem. The problem is that each report is expecting a parameter which kicks off the query for the report. My question is: Is there a way to get the parameter name from the Report viewer so we can load the required info into the parameter once that parameter exists? Thanks.

[property.name for property in reportViewer.properties] should give you all the names, given reportViewer as a reference to some report viewer component.

Thanks I’ll give it a shot. Does the “x.properties” apply to any component?

Basically, yes, anything that supports custom properties will support getProperties()/.properties:
https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.11/com/inductiveautomation/factorypmi/application/binding/DynamicPropertyProvider.html
https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.11/com/inductiveautomation/vision/api/client/components/model/AbstractVisionPanel.html