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 |
|
- List: JavaScript functions in the ScriptLibrary
- JavaScript function: addToGroup
- JavaScript function: checkAllowedOption
- JavaScript function: checkVersionString
- JavaScript function: isfileexist
- JavaScript function: isInGroup
- JavaScript function: removeFromGroup
- JavaScript function: returnGroupMembers
- JavaScript function: returnMyGroups
- JavaScript function: skipApproval
JavaScript function: skipApproval
Prevents an item's approval status from being reset to "pending."
Syntax
ApprovalItem.skipApproval (isChanged, finalstatus, lCartItemFile);
Arguments
The following arguments are valid for this function:
Name | Data type | Required | Description |
---|---|---|---|
isChanged
|
Boolean | Yes | This argument indicates whether the cart Item is changed. |
finalstatus
|
String | Yes | This argument contains the latest cart item’s approval status |
lCartItemFile
|
Datum object | No | This argument is the cart Item object. |
Return values
A boolean value: true
or false
If the function returns true, the item approval status is not reset to "pending."
Description
You can modify the implementation of this function base on your organization's own business logic.
Example
In OOB, if the item is not changed, and the approval status is not denied, you can skip resetting the approval status to pending.
function skipApproval(isChanged, finalstatus, lCartItemFile){ if (isChanged !=null && finalstatus!= null && isChanged==false && finalstatus !="denied") { return true; }else { return false; } }