Show:

Store that used in online mode by default.

Item Index

Methods

batchSelect

(
  • queries
)
Promise

A method to get array of models.

Parameters:

  • queries Array

    Array of Flexberry Query objects.

Returns:

Promise:

A promise that fulfilled with an array of query responses.

batchUpdate

(
  • models
  • getProjections
)
Promise

A method to send batch update, create or delete models in single transaction.

All models saving using this method must have identifiers.

The array which fulfilled the promise may contain the following values:

  • same model object - for created, updated or unaltered records.
  • null - for deleted records.

Parameters:

  • models DS.Model[] | DS.Model

    Is array of models or single model for batch update.

  • getProjections Object

    Optional projections for updated models.

Returns:

Promise:

A promise that fulfilled with an array of models in the new state.

deleteRecord

(
  • modelName
  • filter
)

Delete all record from the current store.

Parameters: