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.
Specifies the process automation data types. For example, Boolean, Date, and ValueMap.
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))
This example declares a variable (array) and sets it to the converted JavaScript object.
var array = ca_pam_convertToJavaScriptObject(valueObject);
|
Copyright © 2014 CA.
All rights reserved.
|
|