OKS Data Editor

Find/Replace Dialog Window

The Find dialog window is used to find objects containg given value of attributes or relationships.
The Replace dialog window is used to find such objects and substitute the found values by some other value.
[replace dialog]

The "Replace" group of radio buttons defines type of search:

If "search by attribute value" is choosen, the search is performed by all objects that contain attributes with some user-specified type, e.g. search all objects with attribute of type "signed short integer" equal to 123, or search all attribute of type "string" containg "@cern.ch".
If "search by relationship value" is choosen, the search is performed by all objects that contain relationships pointing to some object, e.g. search all objects that have a reference to the object X of class A.

If "Find" button is pressed, the found objects with details are printed to the standard output (message log window), e.g.:
Find '"@cern.ch"' (case sensitive match)
 - match attribute 'Authors' of object 'SW_Object@mrs-server'
    * found (case sensitive match) substring "@cern.ch" in '<Doris.Burckhart@cern.ch>'
 - match attribute 'Authors' of object 'SW_Object@mrs-server'
    * found (case sensitive match) substring "@cern.ch" in '<Mihai.Caprini@cern.ch>'
 - match attribute 'Authors' of object 'SW_Object@rc-intera-controller'
    * found (case sensitive match) substring "@cern.ch" in '<Robert.Jones@cern.ch>'
 - match attribute 'Authors' of object 'SW_Object@confdb-print-hosts'
    * found (case sensitive match) substring "@cern.ch" in '<Igor.Soloviev@cern.ch>'
 - match attribute 'Authors' of object 'SW_Object@ipc-server'
    * found (case sensitive match) substring "@cern.ch" in '<Serguei.Kolos@cern.ch>'

If "Replace"button is pressed, the modified objects with details are printed to the standard output (message log window), e.g.:
Replace '[Workstation@sunatdaq01.cern.ch]' to '[Workstation@sunatdaq02]'
 - update relatioship 'RunsOn' of object 'RunControlApplication@ROC1Ctrl'
 - update relatioship 'RunsOn' of object 'RunControlApplication@ROC2Ctrl'
 - update relatioship 'RunsOn' of object 'RunControlApplication@RootCtrl'
 - update relatioship 'RunsOn' of object 'RunControlApplication@SFC1Ctrl'
 - update relatioship 'RunsOn' of object 'RunControlApplication@SFC2Ctrl'
 - update relatioship 'RunsOn' of object 'RunControlApplication@DFMCtrl'

Before search, the input values typed by the user, are converted to given attribute or object types and input fields are updated accordanly. The find is not started if object specified by the user does not exist. The replace is not started, if after conversion the 'from value' is equal to the 'to value'.

If search by string value is performed, it is possible to define two additional parameters of the search:

If replace by string attribute value is used and matching to whole string is not required, each found matching token is replaced, e.g. case insensitive replacement of string "abcxyXyxYXYcba" by "XY" to "YX" produces new string "abcYXYXYXYXcba".


Home - Previous - Index

Modified 8 November 1999
Author Igor Soloviev