Archive for November, 2010
UPDATE: For an improved version of the code which works correctly with parameter groups and cascading parameters please see this updated post. Thank you to Stork for pointing out the problem with this code. The traditional way of accessing BIRT report parameters from script is through the expression ReportContext.getParameterValue( parameterName ). Naturally this method requires […]
The following expression will dynamically get the file name of the report: reportContext.getReportRunnable().getReportName(); Two points to note: The expression actually returns the full report URI rather than just the name, i.e. something like file:/C:/BIRT/Report01.rptdesign. The URI is percent-encoded and so space characters will be returned as %20 and so on for other special characters, e.g. […]