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 a JavaScript class definition from another JavaScript
Suppose you have two different JavaScript libraries and you do not want to copy the code from one library to the other just to make a JavaScript class definition available to the other one. For example, you define a MyClass class in Test2, then you instantiate MyClass in Test3, and then you call a function in Test4 passing the instantiated object in Test3 to that function; additionally, you may want the function in Test4 to be able to check if the received object is actually an instantiation of the class defined in Test2. You then need to make Test3 to recognize MyClass.
To achieve this behavior, in the Test2 file, you can add a function that returns the class itself, instead of an instantiated object of the class. If you call this function from Test4, you get a pointer to the class definition.
See the following for the sample scripts.
Test2
var MyClass = function () { this.var1 = 'variable 1'; this.var2 = 'variable 2'; }; MyClass.prototype.getVariable1 = function() { return this.var1; }; MyClass.prototype.getVariable2 = function() { return this.var2; }; function require() { return MyClass; };
Test3
var MyClass = lib.Test2.require(); var objMyClass = new MyClass(); print('Test3>', objMyClass instanceof lib.Test2.require()); lib.Test4.checkit(objMyClass);
Test4
var MyClass = lib.Test2.require(); function checkit( anObject ) { print('Test4>', anObject instanceof MyClass); print( anObject.getVariable1() ); print( anObject.getVariable2() ); print( anObject.var1 ); print( anObject.var2 ); };