Skip to main content



      Home
Home » Archived » BIRT » using JavaScript in HTML to retrieve file name of report
using JavaScript in HTML to retrieve file name of report [message #1235339] Fri, 24 January 2014 00:09 Go to next message
Eclipse UserFriend
Hi Guys

New to BIRT and Javascript and HTML

What I want to be able to do is on the master page layout retrieve the filename of the report and print it in HTML so that I can name each report by its filename rather than having to name each report individually.

I have done some searching but to no avail

Here is what I have tried

<script language="JavaScript">
var sPath=window.location.pathname;
var sPage = sPath.substring(sPath.lastIndexOf("/") + 1);
document.write(sPath);
</script>

and this is what it returned


/viewer/frameset

Thanks in advance
Re: using JavaScript in HTML to retrieve file name of report [message #1240839 is a reply to message #1235339] Fri, 07 February 2014 01:02 Go to previous message
Eclipse UserFriend
If you're just trying to do this in the master page of the report, why not use something like this in a dynamic text box?

reportContext.getDesignHandle().fileName
Previous Topic:Table report item content is empty
Next Topic:Regarding new data source jdbc connection
Goto Forum:
  


Current Time: Tue Jun 24 03:43:32 EDT 2025

Powered by FUDForum. Page generated in 0.71634 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top