plugin/com.blackberry.pim.contacts/www/client.js
function (result) {
            var  error;

            if (!result._success) {
                error = new ContactError(result.code);
            }

            if (onInvoke && typeof(onInvoke) === "function") {
                onInvoke(error);
            }
        }
function (result) {
            var  error;

            if (!result._success) {
                error = new ContactError(result.code);
            }

            if (onInvoke && typeof(onInvoke) === "function") {
                onInvoke(error);
            }
        }
/*
options = {
mode: Single or Multiple or Attribute, // if mode=Attribute, then must specify kind filters
title: "some string",
confirmButtonLabel: "some string",
fields: ["phoneNumbers", "emails", "urls"]
}