Using search and replace
There are different criteria that you can set when you use search and replace in the Design Studio.
To use search and replace:
- Click Search > Search on the menu bar, or press Ctrl+H.
The Search window opens.
-
Click the Transformation Extender
Search tab.
This is the view through which you make your search and replace selections.
- Enter text or wildcard characters in the Search string field.
Case sensitive and Whole word are optional fields that you can select.
- Under Search In:, click Map Source Files.
- Under Search For:, click one of the search
entities.
- Under Scope:, click one of the scope entities.
- Click Search to do a search operation only, or Replace to do both a search and a replace operation.
- If you clicked Replace, the Map Designer window opens and displays the following message: Changes made using replace can not be undone. Do you want to continue with replace? Respond to the message by clicking OK.
-
While the operation is running, it displays the Search Query window
containing the Operation in progress message. If it is searching through a large
number of resources, the window remains open. Click Run in Background so that
you can continue to access the Design Studio graphical user interface
(GUI).
You can monitor the operation's progress by opening the Progress view, and viewing the progress indicator. You can also cancel the operation in this view.The operation completes and displays any matches in the lower pane under the Search tab. -
Click a map source file listed in the search results to see the details of the matches.
Double-click any map name in the list to locate it in the Map editor. - If you clicked Replace to do both a search
and a replace operation, do the following additional steps:
- Select the check box next to each map name in the search results
details to include in the replace operation.
There are two options in Search view that you can use if there are many search results to include (Select All), or exclude (Deselect All) from the replace operation.- Select All - automatically selects all of the maps
- Deselect All - automatically deselects all of the maps, which were previously selected
- Enter the replacement text in the With: field.
The Replace: field contains the text you entered in the Search string field of the Search window.
- Click Replace. The operation replaces the text in the Replace: field with the text in the With: field in every search result you selected to be included in the operation. It cannot replace text if you selected Output under the Search For: pane. When the operation completes, the Map Designer window displays a message about how many replacements were made.
- Click OK.
- Select the check box next to each map name in the search results
details to include in the replace operation.