Book a Demo

Author Topic: Substitutions in URLs  (Read 4675 times)

mikebk

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Substitutions in URLs
« on: January 28, 2010, 01:24:39 am »
I'm making fairly heavy use of hyperlinks on sequence/state diagrams. Typically, these hyperlinks link messages in sequence diagrams to the corresponding points in captured trace/log files. Of course, the base portion of my URLs changes as our local network evolves (out of my control). I have to edit each hyperlink each time the base portion of the URL changes. This is a time consuming activity.

Would anyone have an idea as to how to tackle this?

I've wondered EA has any mechanism for substituting text in a URL but haven't found one.

The EA "Local Paths" facility seemed ideal but it only supports substitution in the path to a source file as opposed to in a URL and .html (or .aspx for that matter) are not available as file type choices .

Is there a perhaps a way to substitute environment variables?

Alternatively, Microsoft Word documents have a "Hyperlink Base" property that could do the mapping in an RTF report. Of course, I'd like to be able to exercise the hyperlinks from within EA so EA would still need an equivalent facility.

Thanks

Mike

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Substitutions in URLs
« Reply #1 on: January 28, 2010, 01:38:45 am »
Mike,

I think you three options to change them all without doing one by one by hand, listed by increasing danger of messing things up:
  • Write an addin that replaces the url in question
  • export to xmi and do a search and replace, and then import again
  • Connect to the database directly and run an update SQL to update the fields involved.

Geert