Execute
pentaho.visual.action. Execute
The Execute
action is a synchronous, data and positioned action that is performed when the user interacts with a visual element, typically by double clicking it.
AMD Module
require(["pentaho/visual/action/Execute"], function(Execute) { /* code goes here */ });
See also: pentaho.visual.action.spec.IExecute
Extends
- pentaho.visual.action.Base
- pentaho.visual.action.mixins.Data
- pentaho.visual.action.mixins.Positioned
Constructor
Name | Description |
---|---|
new Execute(spec) | Creates an execute action given its specification. |
Members
Name | Description |
---|---|
id Static | |
base : Protected | If a method has been overridden, then the base method provides access to the overridden method. |
dataFilter : | Gets or sets the data filter of this action. |
eventName : | Gets the event name of the action. |
position : | Gets or sets the position where the action took place, in screen coordinates. |
Methods
Name | Description |
---|---|
clone() : pentaho.action.Base | Creates a shallow clone of this action. |
extend(source, keyArgs) : object | Extend an object with the properties of another. |
validate() : Array.< | Determines if the given action is valid. |
Constructor Details
new Execute(spec) | ||||||
---|---|---|---|---|---|---|
Creates an execute action given its specification. Source: javascript/web/pentaho/visual/action/Execute.js, line 25
See also: pentaho.visual.action.spec.IExecute Example define(["pentaho/visual/action/Execute"], function(ExecuteAction) { // ... // Listen to the execute event model.on(ExecuteAction.id, { do: function(action) { var dataFilter = action.dataFilter; alert("Executed on rows where " + (dataFilter && dataFilter.$contentKey)); // Mark action as done. action.done(); } }); // ... // Act "execute" on data rows that have "country" = "us". model.act(new ExecuteAction({ dataFilter: { _: "=", p: "country", v: "us" } }); }); |
Members Details
id: Static |
---|
Source: javascript/web/pentaho/visual/action/Execute.js, line 82 |
base: Protected |
---|
If a method has been overridden, then the base method provides access to the overridden method. Can also be called from within a constructor function. Source: javascript/web/pentaho/lang/Base.js, line 299 Overrides: pentaho.visual.action.mixins.Positioned#base |
dataFilter: |
---|
Gets or sets the data filter of this action. When set to a filter specification, When Source: javascript/web/pentaho/visual/action/mixins/Data.js, line 73 Inherited From: pentaho.visual.action.mixins.Data#dataFilter |
eventName: |
---|
Gets the event name of the action. The default implementation returns the value of Source: javascript/web/pentaho/action/Base.js, line 82 Overrides: pentaho.visual.action.mixins.Positioned#eventName |
position: |
---|
Gets or sets the position where the action took place, in screen coordinates. Source: javascript/web/pentaho/visual/action/mixins/Positioned.js, line 61 Inherited From: pentaho.visual.action.mixins.Positioned#position |
Methods Details
clone() : pentaho.action.Base | ||||
---|---|---|---|---|
Creates a shallow clone of this action. Source: javascript/web/pentaho/action/Base.js, line 103 Overrides: pentaho.visual.action.mixins.Positioned#clone
|
extend(source, keyArgs) : object | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Extend an object with the properties of another. Methods that are overridden are accessible through This object is extended, but its class doesn't change. Source: javascript/web/pentaho/lang/Base.js, line 1040 Overrides: pentaho.visual.action.mixins.Positioned#extend
|
validate() : Array.< | ||||
---|---|---|---|---|
Determines if the given action is valid. The default implementation does nothing and considers the instance valid. Override to implement an action's specific validation logic. Source: javascript/web/pentaho/action/Base.js, line 94 Overrides: pentaho.visual.action.mixins.Positioned#validate
|