Data/MixedBeanCollection

Data/MixedBeanCollection

# new Data/MixedBeanCollection()

Mixed collection class.

Supports wrapping multiple related collections by link to allow aggregated interactions across multiple bean relationships. Does not support direct fetch at this time except in search mode.

Filtering and searching

The collection's Data/BeanCollection#fetch method supports filter and search options. For example, to search across accounts, opportunities, and contacts for favorite records that have the string "Acme" in their searchable fields:

const DataManager = require('data/data-manager');
var records = SUGAR.App.data.getMixedBeanCollection();
records.fetch({
    favorites: true,
    query: 'Acme',
    module_list: 'Accounts,Opportunities,Contacts'
});

Extends