Newer Version Available

This content describes an older version of this product. View Latest

Object Functions

AJAX Toolkit has several ways of accessing object information.
Property values can be accessed directly or by using a generic set or get method:
  • A get function for each field in the object. For example, an Account object has a get("Name") function. This can be used instead of object.Field (for example, account.Name).
  • A set function for each field in the object. For example, an Account object has a set("Name) function. This can be used instead of object.Field = value.
For example, you can get the value of the Name field from an Account using either of these methods:
  • account.get("Name")
  • account.Name
  • account["Name"]
You can set the value of the Name field from an Account using either of these methods:
  • account.set("Name", "MyAccount");
  • account.Name = "MyAccount";
  • account["Name"]="MyAccount";

For information about processing results, see Processing Results.