ContactOrganization

The ContactOrganization object contains the organization information of a Contact object.

Example:

      function createContact() {
        var contacts = blackberry.pim.contacts;

        var workOrg = {
          "name": "Research in Motion",
          "department": "BlackBerry WebWorks",
          "title": "Developer"
        };

        var newContact = contacts.create();
        newContact.name = {
          "givenName": "Homer",
          "familyName": "Simpson"
        };
        newContact.organizations = [workOrg];

        newContact.save(onSaveSuccess, onSaveError);

        alert("Work organization: " + workOrg.name);
      }

      function onSaveSuccess(contact) {
        alert("Contact saved: " + contact.organizations[0].name);
      }

      function onSaveError(error) {
        alert("Contact save failed: " + error.code);
      }
      </script>
      
Properties:
String department
String name
String title

department

The contact's department within the organization.

Synopsis:

String ContactOrganization.department

name

The name of the organization.

Synopsis:

String ContactOrganization.name

title

The contact's title within the organization.

Synopsis:

String ContactOrganization.title

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus