Book a Demo

Author Topic: Using a Tooltip to Display Diagram Element Notes  (Read 4316 times)

GMF_TimB

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Using a Tooltip to Display Diagram Element Notes
« on: May 02, 2012, 02:06:43 am »
Hello -

I know someone has tried this before, so hopefully the group can help....

When generating an HTML report, every model element on a diagram (classifier, object, boundary, etc...) has a link to a new page.  Sometimes the page has another diagram, most times it doesn't.  In all cases, the page contains model element specific information.  Of particular interest is the element documentation or note.

It would be great to hover the mouse over a model element on a diagram and have a tooltip popup with the note.  In many cases this would relieve the user from having to click the element just to get a description.

I have found the appropriate place in the HTML and CSS Style Editor to insert showtip() and hidetip() Javascript functions (Page - Basic Template, if you are interested).  I have also traced back through the generated HTML and found the HTML code that needs to change to use these two new functions.  I used this information to locate a root CSS sheet (Body - Diagram), but the image and the map is generated by an EA #IMAGE# tag that I can't refine further.

This #IMAGE# tag generates the HTML IMG and the coordinate MAP overlayed AREAs.  All that is needed to make this work is to modify the code that generates the map to include calls to the showtip() and hidetip() functions when the onMouseover and onMouseout events occur.

Question: Where can I find the code that generates the diagram and map HTML?

Thank you, in advance, for your help.

Kind regards,
Tim

kommedal

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Using a Tooltip to Display Diagram Element Notes
« Reply #1 on: November 18, 2018, 10:49:55 pm »
Why do no one answear the posted question?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Using a Tooltip to Display Diagram Element Notes
« Reply #2 on: November 19, 2018, 12:24:51 am »
Because nobody knew the answer. The code is inside EA. Where else?

q.

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Using a Tooltip to Display Diagram Element Notes
« Reply #3 on: November 19, 2018, 09:59:45 am »
Quote from 'Forum Etiquette', a sticky post at the top of this category:

"Use of the user forum is entirely voluntary and imposes no obligation on anyone to contribute, whether that be the general user audience or Sparx employees. So, if you post a request, it is possible that you might not get a response."
Best Regards, Roy