Skip to main content



      Home
Home » Archived » BIRT » Last modified date of the report(Get last modified date of the current report)
Last modified date of the report [message #916083] Tue, 18 September 2012 09:55 Go to next message
Eclipse UserFriend
Hi,

I want to show the last modified date of the report on the footer of my report.

I think that I can get the last modified date of the report with:
reportContext.getReportRunnable().getProperty('???????')

But I wasn't able to find the correct parameter for the function getProperty.

Does anyone have an idea how to do that?


Thanks

- Mike
Re: Last modified date of the report [message #916172 is a reply to message #916083] Tue, 18 September 2012 12:48 Go to previous messageGo to next message
Eclipse UserFriend
You could try adding a data item with the following expression:

importPackage( Packages.java.io);
importPackage(Packages.java.text);
importPackage(Packages.java.net);
var reportFolderAndReportName = reportContext.getReportRunnable().getReportName();
var furi = new URI( reportFolderAndReportName );
var f = new File(furi);
var sdf = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");
sdf.format(f.lastModified());

Jason
Re: Last modified date of the report [message #916215 is a reply to message #916172] Tue, 18 September 2012 14:31 Go to previous message
Eclipse UserFriend
Working good!

Big thanks Jason!
Previous Topic:Session Problem
Next Topic:Cross Tab export to dataSet
Goto Forum:
  


Current Time: Tue Jul 01 13:18:49 EDT 2025

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

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

Back to the top