Object Functions

get function for each field in the object.

  • account.get("Name")
  • account.Name
  • account["Name"]

set function for each field in the object.

  • account.set("Name", "MyAccount");
  • account.Name = "MyAccount";
  • account["Name"]="MyAccount";


Data Types

The AJAX Toolkit returns all data as strings.
If needed, you can convert the data into an appropriate datatype by using one of the functions supplied with the returned object:

  • getDate maps dates to JavaScript Date.
  • getDateTime maps dateTime values to JavaScript Date.
  • getInt maps integer values to JavaScript Int.
  • getFloat maps float values to JavaScript Float.
  • getBoolean maps boolean values to JavaScript Boolean.
  • getArray retrieves arrays of values.
  • getBase64Binary returns the decoded value of a Base64 binary encoded string.


Quick Link to parent document: Working with the AJAX Toolkit