Download xAdmin 4.5 SP1 User Guide
Transcript
Supportability Tools <Vehicle> <Vehicle_Year>2008</Vehicle_Year> <Vehicle_Make>Ford</Vehicle_Make> <Vehicle_Model>Focus</Vehicle_Model> </Vehicle> </Customer> The search in this example would return Cathy Carlson’s record, ID 3. ID 1 meets the “Vehicle Make” test, but not the “Vehicle Year” test, and record 2 meets the “Vehicle Year” test but not the “Vehicle Make” test. Use the OR operator to search for work items that meet either of two specified conditions. The OR operator directs xRevise to retrieve a work item when it satisfies either the first or second search item, or both. Use OR to broaden your search. Using the same records as in the AND example above, but searching for records where the vehicle year is “2008” OR the vehicle make is “Ford”, all three records would be returned since record 1 meets the “Vehicle Make” test and records 2 ad 3 meet the “Vehicle Year” test. Vehicle 3 meets both tests, but is returned only once since the OR operator is satisfied by the first test and the second need not be considered. From this example it is clear that AND is more restrictive than OR since a record must satisfy each of the AND operator’s tests, but only one of the OR operator’s tests. Wildcard Characters A wildcard character is a keyboard character that is used to represent one or more characters in a search statement. You can use a wildcard character to search for all derivations of a search word. This is a useful function if you’re uncertain of the possible endings of a search word. When your search statement includes a wildcard character, the number of potential references increases. Wildcard characters can be used in searches to return text that contains a specified string. For example, the search string “*doc*” would return “doctor”, doctrine”, document”, “indoctrinate”, and so forth. In xPression the asterisk (*) or the percent sign (%) can be used as the wildcard character for multiple characters and the question mark (?) or the underscore (_) for single characters. Some databases use the asterisk and question mark, others use the percent sign and underscore. xPression automatically uses the correct wildcard for your database, so in environments using Oracle or DB2 the asterisk is replaced behind-the-scenes with a percent sign automatically. To include a wildcard character in the search as a literal value, precede it with the pipe character (|). For example, to search for "A*3" use: A|*3. To search for a pipe character, use two pipe characters: ||. There is a limitation with SQL in that the wildcard is only recognized when placed after the specified string. For example, in a SQL database searching for “late” using the Contains Word or Phrase option would return “later” but would not return “elate.” When a search string using the Exact Word or Phrase option is preceded with a wildcard character, the wildcard at the beginning is ignored when a SQL database is employed. Copy After satisfactorily running a search through the UI, you can click the Copy button to copy the current search in text form to the clipboard. You can past this into a script so that the search can be repeated 308