object-lookup

A "object-lookup" data source for all store objects of a given set of types, subject to the current user’s permissions.

The ID is the ref of the store object, as a string, and the display name is the title of the object.

The definition is a single Ref, or an Array of Refs to define a set of types. Use the TYPE constants.

Example

To create a data source which looks up all people and organisation objects in the store:

    P.dataSource("people_and_orgs", "object-lookup", [
        T.Person, T.Organisation
    ]);