Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
Search for | Example | Results |
---|---|---|
A single word | cat
|
Topics that contain the word "cat". You will also find its grammatical variations, such as "cats". |
A phrase. You can specify that the search results contain a specific phrase. |
"cat food" (quotation marks) |
Topics that contain the literal phrase "cat food" and all its grammatical variations. Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase. |
Search for | Operator | Example |
---|---|---|
Two or more words in the same topic |
|
|
Either word in a topic |
|
|
Topics that do not contain a specific word or phrase |
|
|
Topics that contain one string and do not contain another | ^ (caret) |
cat ^ mouse
|
A combination of search types | ( ) parentheses |
|
Example: Query a record using the SCFile object
This JavaScript example demonstrates how to perform the following objectives.
- Query a record from a table using the SCFile object.
- Obtain the resulting record in XML format by using the getXML method that gives you field names in addition to values.
- Iterate through the resulting XML and print the field names and values. For a more robust approach, see Example: Iterating through a complex XML document.
var fContacts = new SCFile( "contacts" ); var rc = fContacts.doSelect( "contact.name = \"BROWN, NICHOLAS\" " ); if ( rc != RC_SUCCESS ) // doSelect can also return RC_BAD_QUERY or RC_NO_MORE { print( "Error - doSelect returned " + RCtoString(rc) ); } else { var xmlContactsRecord = fContacts.getXML().instance; var fldIndex; for ( fldIndex in xmlContactsRecord ) { var node = xmlContactsRecord[fldIndex]; if ( node.getFirstChildElement() != null ) // this node has child elements { var i; for ( i in node ) // print the child elements { var childNode = node[i]; print( childNode.getName(), "=", childNode.getValue() ); } } else print( node.getName(), "=", node.getValue() ); } }