Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: Bebert on October 24, 2014, 09:01:37 pm

Title: permanent link to html export
Post by: Bebert 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

Title: Re: permanent link to html export
Post by: OpenIT Solutions on October 27, 2014, 05:15:19 am
Yes use format yoururl?guid={<element guid>}

Title: Re: permanent link to html export
Post by: AndyJ 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.

Title: Re: permanent link to html export
Post by: OpenIT Solutions on October 29, 2014, 03:37:42 am
No that changes each time you publish....you need to use the ?guid=<element guid> approach.
Title: Re: permanent link to html export
Post by: AndyJ 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
Title: Re: permanent link to html export
Post by: Bebert on November 04, 2014, 03:40:09 am
to begin, it's the easiest way
thank's
Title: Re: permanent link to html export
Post by: AndyJ 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
Title: Re: permanent link to html export
Post by: AndyJ 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
Title: Re: permanent link to html export
Post by: Eve 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?
Title: Re: permanent link to html export
Post by: AndyJ 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
Title: Re: permanent link to html export
Post by: AndyJ 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