Class: CommentTypeCollection

XM. CommentTypeCollection

new CommentTypeCollection()

Source:

Extends

Members

dispatch

If true forwards a `post` dispatch request to the server against a function named "fetch" on the recordType name of the collection's model. Otherwise calls `get` against the same. This makes it easy to re-route fetch calls to functions that may have much more complex logic than the normal `get` methodology and related crud methods can support.
Inherited From:
Default Value:
  • false
Source:

Methods

add()

Handle status change. #refactor XXX just by calling collection.add(new Model()), my new model becomes magically READY_CLEAN instead of EMPTY or READY_NEW ??
Inherited From:
Source:

autoSync()

Syncs the collection with the changed model.
This:
  • An
Inherited From:
Source:

fetch()

Retrieve records from the xTuple data source. Optionally retrieve a subset by passing query parameters.
Inherited From:
Source:

getObjectByName()

Convenience wrapper for the backbone-relational function by the same name.
Inherited From:
Source:

getStatus() → {Number}

Return the current status.
Inherited From:
Source:
Returns:
Type
Number

setStatus(Status)

Set the status on the model. Triggers `statusChange` event.
Parameters:
Name Type Description
Status Number
Inherited From:
Source:

sync()

Sync to xTuple data source.
Inherited From:
Source: