Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Uffe on February 01, 2016, 09:12:22 pm

Title: Current date / time in HTML report
Post by: Uffe on February 01, 2016, 09:12:22 pm
Hey guys,


Is there a way to get the current date and time into (the front page of) an HTML report?
I can't find an option for this.

I don't mind a creative solution (read: hack), so I tried creating a search which returns the current date/time and putting a Hyperlink to that search on my diagram, but of course the HTML version of the diagram only shows the hyperlink itself, not the result of the search.

I could create a stereotype with a shape script which displays the result of an Add-In call which returns the current date/time, but frankly that's farther than I'm willing to go for this.

You see what I'm looking for -- a complex setup is fine, but it must be fully automated and integrated into the regular HTML generation process.

Any thoughts?


/Uffe
Title: Re: Current date / time in HTML report
Post by: Glassboy on February 02, 2016, 06:49:06 am
Wouldn't it be easier to add some javascript to your HTML template that displayed the lastModifiedDate of one of the files in the HTML report?