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 global methods
- JavaScript global method: base64Decode
- JavaScript global method: base64Encode
- JavaScript global method: compile
- JavaScript global method: doHTTPRequest
- JavaScript global method: doSOAPRequest
- JavaScript global method: execute
- JavaScript global method: getLog
- JavaScript global method: help
- JavaScript global method: insertDatum
- JavaScript global method: makeSCWebURL
- JavaScript global method: print
- JavaScript global method: Quit
- JavaScript global method: RCtoString
- JavaScript global method: readFile
- JavaScript global method: setAppMessage
- JavaScript global method: stripHtml
- JavaScript global method: uncompressFile
- JavaScript global method: writeAttachmentToFile
- JavaScript global method: writeFile
- JavaScript global method: xmlstring
JavaScript global method: insertDatum
Inserts data into an array datum directly.
Syntax
insertDatum( array[, position[, number[, value[, denull]]]])
Arguments
The following parameters are valid for this function.
Parameter |
Data type |
Description |
---|---|---|
array |
Array datum |
The array parameter is the array into which an element is inserted. |
position |
Number
|
The position parameter is the position of the first inserted element. If the value is zero (0), the element is inserted at the end of the array. This is an optional parameter. The default value is zero (0). |
number |
Number |
The number parameter is the number of elements to insert. This is an optional parameter. The default value is one (1). If the value is zero (0), this function will return without changing the array. |
value |
Any data type supported by RAD |
The value parameter is a value to insert into the new elements. This is an optional parameter. The default value is NULL. |
denull |
Boolean |
The denull parameter is a logical value that determines whether or not the array should be denulled before inserting elements. This is an optional parameter. The default value is true. |
Return values
The array is returned with the new data inserted.
Throws
None
Description
This method insert data directly into an existing array datum.
Examples
Action desired |
Example and result |
---|---|
Insert an element at the beginning of an array datum |
Returns: |
Insert an element in the middle of an array datum |
Returns: |
Insert an element at the end of an array datum |
Returns: |
To denull the array datum |
Returns: |
To avoid denulling the array datum |
Returns: |
To denull the array datum again |
vars.$a=["a", "b", null, null, "e", "f", null, null, null, null]; insertDatum(vars.$a, 2, 1, "z"); Returns: |
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to ovdoc-ITSM@hp.com.
Help Topic ID:
Product:
Topic Title:
Feedback: