Book a Demo

Author Topic: Find and Replace  (Read 4552 times)

Dorian Workman

  • EA User
  • **
  • Posts: 194
  • Karma: +0/-0
    • View Profile
Find and Replace
« on: October 09, 2008, 11:27:04 am »
Does EA have a Find and Replace command similar to Word, specifically for text strings within Use Case Scenarios?  The only Help reference I can find is for Search and Replace within the RTF Template Editor...

Thanks.
<a href="http://www.linkedin.com/in/dorianworkman" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Dorian Workman

Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
Re: Find and Replace
« Reply #1 on: October 09, 2008, 12:46:38 pm »
I don't think so....

But.  maybe you need to normalise your use case scenario text into elements, such that you change the definition (text) within the element, and your use case scenario documentation when regenerated will have changed.

Usually, search and replace = duplicated data = need to normalise a bit more.
"I know I'm close to a good design, but it's like the balloon animals, squeeze in one spot and the problem moves down the line"

Dorian Workman

  • EA User
  • **
  • Posts: 194
  • Karma: +0/-0
    • View Profile
Re: Find and Replace
« Reply #2 on: October 09, 2008, 01:39:00 pm »
Could you explain a bit more?  In this example, I am referencing the same screen in different scenarios in the same Use Case, and also in different Use Cases.

Thanks.
<a href="http://www.linkedin.com/in/dorianworkman" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Dorian Workman

Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
Re: Find and Replace
« Reply #3 on: October 09, 2008, 02:47:18 pm »
I apologise,

I can't find an easy way to reference element details within the free text field that is the scenario description.  In fact, there isn't an easy way to reference another element within *any* notes field (and their should be).

Does anyone know?

Thanks,
David.
"I know I'm close to a good design, but it's like the balloon animals, squeeze in one spot and the problem moves down the line"

Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
Re: Find and Replace
« Reply #4 on: October 09, 2008, 02:49:19 pm »
The only other way to do a global search and replace would be at the database level.  I'm not sure where scenario text is stored, but you should be able to write an UPDATE statement that can replace the screen name.
"I know I'm close to a good design, but it's like the balloon animals, squeeze in one spot and the problem moves down the line"

Dave_Bullet

  • EA User
  • **
  • Posts: 295
  • Karma: +0/-0
    • View Profile
Re: Find and Replace
« Reply #5 on: October 10, 2008, 06:10:39 am »
This thread suggests an XMI export, then search and replace in text then re-import:

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1220347847/0#0

I've thought of a way to integrate my UPDATE idea using the Custom SQL Search capability within the EA search function.  I'll give it a try and let you know the outcome.

PS: Are you using EAP files or a relational database.  If so - which relational database?

Thanks,
David.
"I know I'm close to a good design, but it's like the balloon animals, squeeze in one spot and the problem moves down the line"

Dorian Workman

  • EA User
  • **
  • Posts: 194
  • Karma: +0/-0
    • View Profile
Re: Find and Replace
« Reply #6 on: October 10, 2008, 07:06:23 am »
Thanks for your efforts Dave,  I am using an EAP file.

I came up with a clunky solution, I just did a Find in my RTF Report using Word, and then manually made the changes in EA.  Not ideal, but it worked...
« Last Edit: October 10, 2008, 07:06:42 am by dworkman »
<a href="http://www.linkedin.com/in/dorianworkman" ><img src="http://www.linkedin.com/img/webpromo/btn_liprofile_blue_80x15.gif" width="80" height="15" border="0" alt="View Dorian Workman