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 |
|
- Using JavaScript in Service Manager
- Avoiding the use of the for…in loop over an array
- Avoiding variable declaration inside a loop
- Counting records
- Avoiding the use of getLast()
- Restricting fields selected by a query
- Avoiding the use of assignment instead of comparison
- Accessing system language array data
- Working with system variables
- Accessing a JavaScript class definition from another JavaScript
- Implementing custom logging
Accessing system language array data
The Service Manager system language and JavaScript support the array-data type. However, the implementation of this data type is different. For that reason, the access to the elements inside the array is different as well.
While Service Manager allows array[<index>]
access to system language arrays from JavaScript, it does not allow to access sub items in an array of array like this: array[<index1>][<index2>]
.
However, it is possible to access the sub items in an array of array using this syntax: array["<index1>.<index2>"]
instead.
Example
// Create a nested system language array
var array1 = new SCDatum();
array1.setType(8);
array1.push("1_1");
array1.push("1_2");
array1.push("1_3");
var array2 = new SCDatum();
array2.setType(8);
array2.push("2_1");
array2.push("2_2");
array2.push("2_3");
var nestedArray = new SCDatum();
nestedArray.setType(8);
nestedArray.push(array1);
nestedArray.push(array2);
print("nestedArray: " + nestedArray);
print("Now printing the nested Arrays sub-arrays: ");
print("nestedArray[0]: " + nestedArray[0]);
print("nestedArray[1]: " + nestedArray[1]);
print("Now printing the elements of the first sub-array: ");
print('nestedArray["0.0"]: ' + nestedArray["0.0"]);
print('nestedArray["0.1"]: ' + nestedArray["0.1"]);
print('nestedArray["1.2"]: ' + nestedArray["1.2"]);