RejectedUpdate
pentaho.visual.base.events.RejectedUpdate
This event is emitted when any rejection occurs while updating the view with Model#update
.
A rejection can be one of the following:
- the event
"will:update"
was canceled - an error occurred while validating the model
- an error occurred while updating the model
Extends
Mixes In
Constructor
Name | Description |
---|---|
new RejectedUpdate(source, error) | Creates a |
Members
Name | Description |
---|---|
type : Static | Gets the event type. |
cancelReason : | Gets the reason why the event was canceled, if any, or |
error : | Gets the error that caused the |
isCancelable : | Gets a value that indicates if the event can be canceled. |
isCanceled : | Gets a value that indicates if the event has been canceled. |
source : | Gets the source of the event. |
type : | Gets the type of the event. |
Methods
Name | Description |
---|---|
_initError(errorObj) Protected | Initializes the mixin. |
cancel(reason) | Cancels the event. |
clone() : pentaho.lang.Event | Creates a clone of the event object. |
Constructor Details
new RejectedUpdate(source, error) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Creates a Source: javascript/web/pentaho/visual/base/events/RejectedUpdate.js, line 24
|
Members Details
type: Static |
---|
Gets the event type. Source: javascript/web/pentaho/visual/base/events/RejectedUpdate.js, line 60 |
cancelReason: |
---|
Gets the reason why the event was canceled, if any, or Source: javascript/web/pentaho/lang/Event.js, line 116 Inherited From: pentaho.lang.Event#cancelReason |
error: |
---|
Gets the error that caused the Source: javascript/web/pentaho/type/mixins/mixinError.js, line 46 |
isCancelable: |
---|
Gets a value that indicates if the event can be canceled. Source: javascript/web/pentaho/lang/Event.js, line 106 Inherited From: pentaho.lang.Event#isCancelable |
isCanceled: |
---|
Gets a value that indicates if the event has been canceled. Source: javascript/web/pentaho/lang/Event.js, line 152 Inherited From: pentaho.lang.Event#isCanceled |
source: |
---|
Gets the source of the event. Source: javascript/web/pentaho/lang/Event.js, line 96 Inherited From: pentaho.lang.Event#source |
type: |
---|
Gets the type of the event. Source: javascript/web/pentaho/lang/Event.js, line 86 Inherited From: pentaho.lang.Event#type |
Methods Details
_initError(errorObj) Protected | ||
---|---|---|
Initializes the mixin. Source: javascript/web/pentaho/type/mixins/mixinError.js, line 35 |
Name | Default Value | Summary |
---|---|---|
errorObj : Error | pentaho.lang.UserError | The error of a rejected |
cancel(reason) | ||||||
---|---|---|---|---|---|---|
Cancels the event. This method has no effect if the event is not cancelable or has already been canceled. Source: javascript/web/pentaho/lang/Event.js, line 131 Inherited From: pentaho.lang.Event#cancel
See also: pentaho.lang.Event#isCancelable , pentaho.lang.Event#isCanceled , pentaho.lang.Event#cancelReason |
clone() : pentaho.lang.Event | ||||
---|---|---|---|---|
Creates a clone of the event object. Source: javascript/web/pentaho/lang/Event.js, line 161 Inherited From: pentaho.lang.Event#clone
|