Book a Demo

Author Topic: Dealing with changed hyperlinks  (Read 2388 times)

mikebk

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Dealing with changed hyperlinks
« on: October 27, 2009, 02:22:03 am »
We've ended up changing the names of servers that are the targets of hyperlinks from EA. Is there a search and replace facility in EA that could be used to match the old names and replace them with the new names? The Find in Model Command finds about 250 places using one of the servers but doesn't seem to allow replacing the old name with the new one.

For the next time, is there a way to set a single base URL in EA so we can use relative URLs? That would minimize the work the next time server names change.

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: Dealing with changed hyperlinks
« Reply #1 on: October 27, 2009, 07:44:40 pm »
Mike,

I think you should really try to solve it the other way around, always make sure that your path's stay stable, even if the physical location of files is moved to another server. I believe there are enough facilities to make the path to a file independent of its physical location.

Now to solve your issue at hand, I think the best option is to export the whole model to xmi, find/replace and then import it again.
Just be very carefull not to break anything in the xmi file.

You could also try to replace the paths directly in the database, but the risk might be too great that you miss a table or column.

Geert