I’m trying to build a generic window that allows users to select and configure reports to run.
I have a selector component that lists the available reports and sets the path on a Report Viewer component.
Now I’m trying to generate input components based on the parameters of the chosen report, and am having some difficulties getting the names and types of the dynamic properties available to me.
After reading this post I can get the list of dynamic props as a
getDynamicProps(), but I can’t seem to get/set the report parameters.
I can’t access it as a dict in jython:
props['Date'] returns a None
Nor directly through the property:
get('Date') returns a None
Though strangely, when trying
put('Date', system.date.now()) I get a type mismatch since it’s expecting a
DynamicPropertyDescriptor, not the type of the property… But if that’s the case, shouldn’t my attempts at reading the property yield that type even when the underlying parameter is unset?
Not sure if I’m going about this all wrong, but I need to get the names+types of report parameters and hopefully set them.