Skip to main content
Hitachi Vantara Lumada and Pentaho Documentation

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 RejectedUpdate event.

Members

Name Description
type : string
 
Static

Gets the event type.

cancelReason : Error

Gets the reason why the event was canceled, if any, or null.

error : Error | pentaho.lang.UserError

Gets the error that caused the ActionResult to be rejected.

isCancelable : boolean

Gets a value that indicates if the event can be canceled.

isCanceled : boolean

Gets a value that indicates if the event has been canceled.

source : pentaho.lang.IEventSource

Gets the source of the event.

type : nonEmptyString

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 RejectedUpdate event.

Source: javascript/web/pentaho/visual/base/events/RejectedUpdate.js, line 24

Parameters:
Name Default Value Summary
source : pentaho.visual.base.View

The view object that is emitting the event.

error : Error | pentaho.lang.UserError

The error of a rejected ActionResult.

Members Details

type: string
 
Static

Gets the event type.

Source: javascript/web/pentaho/visual/base/events/RejectedUpdate.js, line 60

cancelReason: Error

Gets the reason why the event was canceled, if any, or null.

Source: javascript/web/pentaho/lang/Event.js, line 116

Inherited From: pentaho.lang.Event#cancelReason

Mixes In:
error: Error | pentaho.lang.UserError

Gets the error that caused the ActionResult to be rejected.

Source: javascript/web/pentaho/type/mixins/mixinError.js, line 46

isCancelable: boolean

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: boolean

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: pentaho.lang.IEventSource

Gets the source of the event.

Source: javascript/web/pentaho/lang/Event.js, line 96

Inherited From: pentaho.lang.Event#source

type: nonEmptyString

Gets the type of the event.

Source: javascript/web/pentaho/lang/Event.js, line 86

Inherited From: pentaho.lang.Event#type

Methods Details

Mixes In:
_initError(errorObj)
 
Protected

Initializes the mixin.

Source: javascript/web/pentaho/type/mixins/mixinError.js, line 35

Parameters:
Name Default Value Summary
errorObj : Error | pentaho.lang.UserError

The error of a rejected ActionResult.

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

Parameters:
Name Default Value Summary
reason : string | Error
 
Optional
"canceled"

The reason why the event is being canceled.

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

Returns:
Name Description
pentaho.lang.Event

The cloned event object.