Retrieve BIRT report name in script

November 18th, 2010 | Tags:

The following expression will dynamically get the file name of the report:


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. file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%205.5/webapps/birt-viewer/Report01.rptdesign.
No comments yet.