Book a Demo

Author Topic: Adding HTML Tooltips to HTML Reports  (Read 5332 times)

Heidi Thomson

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Adding HTML Tooltips to HTML Reports
« on: January 12, 2012, 10:53:14 pm »
Hi,

We are starting to document our models using the HTML output and have a feature enhancement for the template.

What we would like to be able to do is add tooltips to the diagrams so that when you hover over an element on a diagram, the notes associated with the element appear.  With the current #IMAGE# tag, I can't see a way of adding these tooltips without doing some complex post processing of the HTML output.

Is this possible?
Thanks,
Heidi

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Adding HTML Tooltips to HTML Reports
« Reply #1 on: January 13, 2012, 12:25:17 am »
Hi Heidi,

Not sure if its possible by creating and editing an HTML Template i'm afraid, but i'd like to also request this as a feature ! My boss has asked for the feature so ill be looking at the template option - if i come up with anything ill let you know.

Regards,

Jon.

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Adding HTML Tooltips to HTML Reports
« Reply #2 on: January 13, 2012, 04:29:57 am »
I've had a good look at this now - and despite my lack of html/css/javascript skills i'm pretty certain that this can't be done without a change to the actual html generation within Sparx...it looks like the #IMAGE# tag not only adds the image, but also adds a <map> section to the html with associated <area> code this is where i'd add onmouseover code to display a tooltip containing the notes of the associated model element - but i think only Sparx could do this ?

Regards,

Jon.

Heidi Thomson

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Adding HTML Tooltips to HTML Reports
« Reply #3 on: January 13, 2012, 08:02:16 pm »
Hi Jon,

Yes, this was my feeling as well.  I did wonder about doing some post processing of the HTML files but decided that was probably going too far.

Thanks,
Heidi