Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:55 Go to next message
Michael Lane is currently offline Michael LaneFriend
Messages: 2
Registered: September 2012
Junior Member
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 16:48 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 18:31 Go to previous message
Michael Lane is currently offline Michael LaneFriend
Messages: 2
Registered: September 2012
Junior Member
Working good!

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


Current Time: Sun Dec 03 05:46:35 GMT 2023

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

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

Back to the top