Using Find and Replace

Use the Find/Replace feature to search for a string on a Canvas screen or object and replace the string with another value. Find and replace allows you to transfer screens made for one CygNet system to another system, by finding and replacing site and service names, facility names, CygNet version numbers, etc. You can perform a find and replace in one or many files and the action can apply to any kind of Canvas file. This feature searches the XML strings underlying a Canvas screen, so be very careful to not find and replace strings such as "Canvas" or "canvas", or you will render a screen inoperable. Best practice recommends that you make a backup of your screens before making string replacements. You can also find and replace via the command line.

The Canvas find and replace feature is similar to property substitution in CygNet Studio.

Find and Replace

Use Find and Replace

Find/Replace

  1. Click File (or Folder) to access the Backstage view.
  2. In the Backstage view, click Find/Replace.
  3. Type the string you want to find in the Find box. Strings are case sensitive.
  4. Type the replacement string in the Replace box.
  5. Tell Canvas where to make the changes. Click Manage to access the Open Files dialog box, where you can find the Canvas file(s) you want to edit.
    1. Choose the location of the files you want to edit, either a CygNet APPS or BSS folder or a local Windows file-system folder.
    2. Browse for the files(s) and click OK to add them to the In box. You can select multiple files using Ctrl+Click or Shift+Click.
  6. Tell Canvas where to search for the find string. There are four check-box options:
  1. Click Find and Replace icon (Replace) to replace the found string with the replacement string in the selected files. A message will display if the find and replace was successful.

Notes: