Previous Topic: ca_pam_convertToSimpleArray (objectArray, fieldName)Next Topic: Check Box


ca_pam_convertToJavaScriptObject(valueObject)

Converts a process automation data type to a standard JavaScript object according to the input data type. If you provide a string as an input value, the method returns a string value.

Input Parameters
valueObject

Specifies the process automation data types. For example, Boolean, Date, and ValueMap.

Return Value

Returns a JavaScript Object based on the value of valueObject. If ValueMap is the input value, it returns a JavaScript object like a map. If Value array is the input parameter, the method returns a Javascript array.

Note: For the Date data type, the long value is returned, which is the canonical representation of the date. To convert it into a date object, use the following syntax:

new Date (ca_pam_convertToJavaScriptObject(valueObject))
Example

This example declares a variable (array) and sets it to the converted JavaScript object.

var array = ca_pam_convertToJavaScriptObject(valueObject);