Book a Demo

Author Topic: Adding an URI to an element  (Read 6521 times)

oehrened

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Adding an URI to an element
« on: June 23, 2015, 08:47:53 pm »
Hi,

I am drawing diagrams in enterprise archtitect but the element description is in another tool (Polarion). I would like to add links to elements such that when I click on the element link the corresponding polarion item is opened in a browser.
Most preferrably I would like to add the polarion Id (xyz-1234) as a tagged value and the link would be auto generated form the ID http://polarion/project/workitem?id=xyz-1234,

Any solution to that?

Best regards,
Christian

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Adding an URI to an element
« Reply #1 on: June 23, 2015, 09:14:21 pm »
Have you tried Common/Hyperlink/Website?

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Adding an URI to an element
« Reply #2 on: June 23, 2015, 10:17:59 pm »
If you need something automated you can write a little script that does that for you.
You can then execute this script to update the hyperlinks.

If you want to run this automatically with each change then you can use the broadcast event EA_OnElementTagEdit.

You can either write an add-in that implements this event, or use EA-Matic to forward this event to the scripting environment and execute the script mentioned before.

Geert

Dermot

  • EA Administrator
  • EA User
  • *****
  • Posts: 591
  • Karma: +7/-0
    • View Profile
Re: Adding an URI to an element
« Reply #3 on: July 06, 2015, 03:36:27 pm »
I am not sure if this is of use, but you can set an Action Element as a direct Hyperlink: Action | Other | Hyperlink - see the help page:
http://www.sparxsystems.com/enterprise_architect_user_guide/12.0/domain_based_models/add_action_as_hyperlink.html

Once you set the URL - Double Clicking will open the page.