JavaScript object: SCDatum

The following JavaScript object is unique to Service Manager.

With no arguments, the SCDatum() constructor creates an empty SCDatum object.

With an object argument, the SCDatum() constructor creates an SCDatum object containing the provided record, structure, or array. You must enclose table names and arrays in quotation marks.

This object's methods use the Service Manager-defined global return codes.

Constructor

new SCDatum()
new SCDatum(object)

Arguments

The following arguments are valid for this object:

Argument Data type Description
object String The table name, record, structure, or array you want to query or update.

Properties

None

Methods

The following methods are valid for this object:

Defined method Description
getSize() This method returns the size of the object.
getText() This method returns a text representation of the object.
getType() This method returns the object type.
getXML() This method returns an XML representation of the object.
join() This method returns a string of all the entries in the array.
JSDate() This method returns a JavaScript Date object.
length() This method returns the length of the object.
pop() This method removes an item from an array.
push() This method adds an item to an array.
setType() This method sets the object type.
setValue() This method sets the object to a given value.
shift() This method returns a string of all the entries in the array.
toArray() This method converts an object to a JavaScript array.
unshift() This method returns a string of all the entries in the array.