Collections

This topic applies to

Applies to

SuiteCommerce Advanced

 

Collections are sets of models. Define the data object that contains the set of models. Define methods that perform actions when the data in a model changes. They can also perform actions on all models within the collection.

SuiteCommerce Advanced often uses collections when displaying lists of items. The Case module, for example, uses the Case.Collection to load a list of support cases assigned to a user. The Case.List.View uses the collection to display the list.

Note

In SuiteCommerce 2020.1 and later, you should use the SuiteCommerce SCCollection component instead of Backbone.Collection. SCCollection is a component of the SuiteCommerce extensibility API. It inherits all methods and properties of Backbone.Collection. See the extensibility API reference for more information.