Book a Demo

Author Topic: Html Report and Direct Link  (Read 5374 times)

Hardy

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Html Report and Direct Link
« on: October 07, 2014, 06:23:29 am »
After I export all my models to Html report and navigate to some certain node in my browser, is there a way I can obtain a URL I can share with somebody else that will take the user direct to the node?
« Last Edit: October 07, 2014, 07:00:11 am by hardywang »

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: Html Report and Direct Link
« Reply #1 on: October 07, 2014, 08:50:55 am »
There's two ways. Your choice probably depends on if you want to automate this or not.

The easiest way is to navigate to the node you want to show for your user, in your web browser, and then just copy and paste the URL from the Address bar in your browser.

The URL will look something like this:

http://your.website.address/your folder name/html/index.htm?guid=EDD83AE0-EEA4-447d-8B6E-CE10B255BEF1

In my case, I embed these links into Confluence pages, and share the confluence pages with my users. You could do the same with Word documents or pdf files.

The other way, is to navigate to the node in your project browser and copy the GUID.

1. Locate the node in the project browser
2. Right click on the node
3. Select Copy Reference, Copy Node GUID to clipboard.

Unfortunately this gives you the GUID in this format:
{58CA8A79-93F1-4c57-9E22-B6DEF6150D55} so you have to drop the curly brackets for this to work when you embed it in a URL.

If you do need to automate this, ask a follow up question and one of the scripting gurus will help. (Probably qwerty)
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

Hardy

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Html Report and Direct Link
« Reply #2 on: October 07, 2014, 11:57:10 pm »
Great! That really helps!

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Html Report and Direct Link
« Reply #3 on: October 08, 2014, 12:13:47 am »
Hi,

Quick note on this re  { } in url. I edited line 176 of 'JavaScript' Web Style Template in Sparx. Added this line:

Linkguid = decodeURI (Linkguid);

My template and associated web sits generated from sparx now work with URLs with or without the  { }

Regards,

Jon.

Hardy

  • EA User
  • **
  • Posts: 45
  • Karma: +0/-0
    • View Profile
Re: Html Report and Direct Link
« Reply #4 on: October 08, 2014, 04:14:10 am »
Would you be able to elaborate about the JavaScript you mentioned? Is it some API/plugin you developed or it is built-in JavaScript in Html report?

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Html Report and Direct Link
« Reply #5 on: October 09, 2014, 01:56:59 am »
See Resources (Alt+6) Document Generation -> Web Style Templates. Create your own and edit the template named 'Javascript' as described above.