APIs

Show:

Mixin for handling errors.

Methods

_openModalDialog

(
  • modelObject
  • editFormRoute
  • isNewRecord
  • useSidePageMode
)
private

Open modal window fo edit record or create new record.

Parameters:

  • modelObject Object

    record or model controller, when record is created.

  • editFormRoute String

    name of edit record route for modal content.

  • isNewRecord Boolean

    flag indicates when modal record open fo create new record.

  • useSidePageMode Boolean

    Indicates when use side page mode.

actions.addErrorMessage

(
  • msg
)
public

Add error message.

Parameters:

actions.dismissErrorMessages

() public

Dismiss error messages.

actions.error

(
  • error
)

Save the error.

Parameters:

actions.groupEditRowClick

(
  • record
  • [options]
)

FlexberryGroupeditComponent row click handler. It sets modelNoRollBack to true at current controller, redirects to detail's route, save necessary data to service.

Parameters:

  • record Ember.Object

    Record related to clicked table row.

  • [options] Object optional

    Record related to clicked table row.

    • saveBeforeRouteLeave Boolean

      Flag: indicates whether to save current model before going to the detail's route.

    • editOnSeparateRoute Boolean

      Flag: indicates whether to edit detail on separate route.

    • modelName String

      Clicked detail model name (used to create record if record is undefined).

    • detailArray Array

      Current detail array (used to add record to if record is undefined).

    • editFormRoute Boolean

      Path to detail's form.

openCreateModalDialog

(
  • modelController
  • editFormRoute
  • useSidePageMode
)

Open create record in modal window.

Parameters:

  • modelController Object

    parent model controller.

  • editFormRoute String

    name of edit record route for modal content.

  • useSidePageMode Boolean

    Indicates when use side page mode.

openEditModalDialog

(
  • record
  • editFormRoute
  • useSidePageMode
)

Open edit record in modal window.

Parameters:

  • record Object

    Record.

  • editFormRoute String

    name of edit record route for modal content.

  • useSidePageMode Boolean

    Indicates when use side page mode.

rejectError

(
  • errorData
  • message
)
public

Reject Error.

Parameters:

Properties

_modalControllerName

String private

Name of using modal controller

Default: 'editrecord-dialog'

_modalTemplateName

String private

Name of using modal template

Default: 'editrecord-dialog'

objectlistviewEvents

Service

Service that triggers objectlistview events.