using JavaScript in HTML to retrieve file name of report [message #1235339] |
Fri, 24 January 2014 00:09  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.71634 seconds