Author Topic: permanent link to html export  (Read 7715 times)

Bebert

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
permanent link to html export
« on: October 24, 2014, 09:01:37 pm »
Hi,
When you generate a html report, the diagram view link isn't link to his name or GUID.
Each generated time, the name change
EA1.htm next time EA5.hml.....
Is it possible to get a link with the GUID ?
Where is the model to the map area ?
thanks


OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: permanent link to html export
« Reply #1 on: October 27, 2014, 05:15:19 am »
Yes use format yoururl?guid={<element guid>}


AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: permanent link to html export
« Reply #2 on: October 27, 2014, 08:30:54 am »
The easiest way is to just follow the link in the HTML published model, and then cut and paste that link.

Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: permanent link to html export
« Reply #3 on: October 29, 2014, 03:37:42 am »
No that changes each time you publish....you need to use the ?guid=<element guid> approach.

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: permanent link to html export
« Reply #4 on: October 29, 2014, 08:22:27 am »
Are you using a browser that hides links?

If I follow a link within the published html model the ?guid=<element guid> style link appears in the URL window at the top of the page in the browser.

This is the easiest way to find those links for publishing, because it's just cut and paste.

Andy
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

Bebert

  • EA User
  • **
  • Posts: 32
  • Karma: +0/-0
    • View Profile
Re: permanent link to html export
« Reply #5 on: November 04, 2014, 03:40:09 am »
to begin, it's the easiest way
thank's

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: permanent link to html export
« Reply #6 on: November 04, 2014, 09:40:11 am »
Oh poop.

It looks like Sparx are not exposing the links in that format anymore, no wonder people keep asking about it.

I'm digging around to see if there's another easy way to generate them.

Andy
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: permanent link to html export
« Reply #7 on: November 04, 2014, 10:35:10 am »
Oh man this is ugly.

You have to build these permanent URLs manually now, EA is no longer exposing them as part of the HTML report generation.

The URL looks like this:

http://your.webserver.address/your_folder_structure/index.htm?guid={360D9D3F-89A7-4fe1-9F3A-9FF2A047B254}

"Your folder structure" represents the path to the published "index.htm" file.

"guid" is case sensitive.

You can expose the GUID of the element that you want to share, within EA, by:

1. Right-click on the element
2. Select "Copy Reference", "Copy Node GUID to Clipboard"

Andy
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: permanent link to html export
« Reply #8 on: November 05, 2014, 04:46:21 pm »
I don't think we ever had something that generated those links for you.

Are you sure you weren't using a copy with modified javascript?

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: permanent link to html export
« Reply #9 on: November 06, 2014, 09:13:34 am »
Yes. Quite sure.

I own the repository, and manage the licences etc.

I'll do some digging, I'm sure I found a way to generate those links, through the browser, and posted it here some time ago.

Andy
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: permanent link to html export
« Reply #10 on: November 06, 2014, 09:39:10 am »
OK.

I can see what has confused me.

Because I've created those links and published them externally, selecting the link shows the link in that format in the location bar.

When someone wants a link to new content, I'm just copying the GUID from the "Advanced" icon on the diagram, if I'm in a browser, or using the copy node method if I'm in EA.

My mistake, sorry people.

Andy
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."