getOutputFormat() always returns "pdf" in beforeFactory event #2206
-
Hello BIRTians, I tried using getOutputFormat() function in the beforeFactory event but it always gives me "pdf". I have some scripts to run in, if else logic based on the exported file type. Example - if ( getOutputFormat() == "pdf" ) Tried So Far
@speckyspooky can I get some help here ? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
I guess that it doesn't make sense to access the output format in You cannot access any report parameter in the You didn't tell us what you want to achieve, probably there are other solutions instead of using |
Beta Was this translation helpful? Give feedback.
-
Yes, I think you need the DE API then. In some cases, depending on how you integrate BIRT, you can use one report to create and save a new report design: First, you run |
Beta Was this translation helpful? Give feedback.
But then it would be only possible if you hae an integration framework where the user defined the output format before the generation will be started and you handle this information like kind of external parameter.
At the level of BIRT there is no option because the information of the output format will be handled later.