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 |
|
- JavaScript object: SCDatum
- JavaScript method: SCDatum.getSize()
- JavaScript method: SCDatum.getText()
- JavaScript method: SCDatum.getType()
- JavaScript method: SCDatum.getXML()
- JavaScript method: SCDatum.join()
- JavaScript method: SCDatum.JSDate()
- JavaScript method: SCDatum.length()
- JavaScript method: SCDatum.pop()
- JavaScript method: SCDatum.push()
- JavaScript method: SCDatum.setType()
- JavaScript method: SCDatum.setValue()
- JavaScript method: SCDatum.shift()
- JavaScript method: SCDatum.toArray()
- JavaScript method: SCDatum.unshift()
JavaScript method: SCDatum.setType()
This method sets the data type of HPE Service Manager datum objects. The SCDatum object also automatically converts Service Manager data types into corresponding JavaScript data types. You can also use the XMLDate object and its methods to convert between date/time formats.
Syntax
SCDatum_object.setType( dataType );
Arguments
The following arguments are valid for this method:
Argument | Data type | Description |
---|---|---|
dataType
|
Number | This argument specifies the Service Manager data type for the object. See Data types. |
Return values
None
Example
This example does the following:
- Creates an SCDatum object containing the number of milliseconds you want to convert
- Sets the data type of the SCDatum object to a Service Manager date/time type
- Converts the number of milliseconds into a JavaScript date/time
This example requires the following sample data:
- A number of milliseconds (for example, "1234567890")
var millisecs; function findDateTime( num ) { var t = new SCDatum( num ); t.setType( 3 ); print( num + " milliseconds is equal to the date: " + t.JSDate() ); } millisecs = 1234567890; findDateTime( millisecs );
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@hpe.com.
Help Topic ID:
Product:
Topic Title:
Feedback: