Author Topic: Adding Functionality to the HTML output  (Read 4563 times)

agdunn

  • EA User
  • **
  • Posts: 43
  • Karma: +0/-0
    • View Profile
Adding Functionality to the HTML output
« on: May 13, 2008, 12:02:03 am »
I don't know if this is a question for the automation forum but I think it best be posed here:

I would like to add functionality to the nodes in the html output. Instead of showing the properties of an element when a user clicks on it I would like the click so send the user to an external website. I know I can do this by overlaying hyperlinks on each element, but this is a cumbersome solution... I would like to be able to specify this as a property of an element.

Possible?

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Adding Functionality to the HTML output
« Reply #1 on: May 13, 2008, 06:43:54 am »
Perhaps this could be done through a customized HTML report.

Of course that presupposes that such customizations be supported by EA, which is not - at least not yet - the case.

This is an oft-requested feature (the ability to customize the HTML generator). Perhaps we'll see it in future.

David
No, you can't have it!

agdunn

  • EA User
  • **
  • Posts: 43
  • Karma: +0/-0
    • View Profile
Re: Adding Functionality to the HTML output
« Reply #2 on: May 13, 2008, 07:00:32 am »
I am not necessarily requesting a large amount of functionality to be added. This is a fairly simple idea, when a user clicks on an element they are being linked to another diagram currently.... I would just like to specify where they are going....

For Sparx to develop a customizable interface for html report generation would be overkill.

brannstrom

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: Adding Functionality to the HTML output
« Reply #3 on: May 13, 2008, 06:25:02 pm »
Hi!

We have solved this by adding a link in the notes for the element. And we also have an xml file with the element-link connection. To create the html report we have a plugin function that controls the links (links to files), updates the links in the element notes in the model and then creates the html report.

/N

agdunn

  • EA User
  • **
  • Posts: 43
  • Karma: +0/-0
    • View Profile
Re: Adding Functionality to the HTML output
« Reply #4 on: May 13, 2008, 10:16:50 pm »
Quote
Hi!

We have solved this by adding a link in the notes for the element. And we also have an xml file with the element-link connection. To create the html report we have a plugin function that controls the links (links to files), updates the links in the element notes in the model and then creates the html report.

/N

Could you please elaborate?

brannstrom

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: Adding Functionality to the HTML output
« Reply #5 on: May 14, 2008, 12:00:06 am »
Quote
Could you please elaborate?


Yes I will try. We have a xml file that contains the name of the element and the file it should link be linked to. The file is managed with Excel.

We then have a plugin function that starts to check that from the xml file linked files exists. The function then proceeds to iterate thru the xml file once again. It finds the element in the model and then adds or modifies a html link into the element's note. When this is done for all the elements in the xml file the plugin generates a hml report with the built in function.

By adding the link like a html link in the element's note the link works in the generated html report.

/N

agdunn

  • EA User
  • **
  • Posts: 43
  • Karma: +0/-0
    • View Profile
Re: Adding Functionality to the HTML output
« Reply #6 on: May 17, 2008, 03:49:26 am »
I apologize, but it just doesnt make sense to me how you are creating this functionality. Is there a link to your generated site?

brannstrom

  • EA User
  • **
  • Posts: 35
  • Karma: +0/-0
    • View Profile
Re: Adding Functionality to the HTML output
« Reply #7 on: May 19, 2008, 06:44:20 pm »
The plugin adds a html tag with a link to a file in a element's note. When you then generate the html report you get a clickable link in that element's note.

/N

agdunn

  • EA User
  • **
  • Posts: 43
  • Karma: +0/-0
    • View Profile
Re: Adding Functionality to the HTML output
« Reply #8 on: May 19, 2008, 10:17:12 pm »
I can add the links to the elements 'notes' through the properties of the element. What I would like to do is instead of having properties for an element.... have a simple hyperlink... just like the hyperlink element.

So I want the functionality of an activity element (relationships, flows, etc.) but only want the properties of a hyperlink element.

I am just imposing hyperlinks over top of the elements that I need this on, that seems like the quickest way to handle this issue.