> For the complete documentation index, see [llms.txt](https://docs.pentaho.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pentaho.com/pba-ctools/pentaho-cdf-api/cdf/dashboard.bootstrap.md).

# Dashboard.Bootstrap

## cdf. Dashboard.Bootstrap

Represents a Bootstrap dashboard aggregating all the classes in the Dashboard hierarchy. It's a specialization of the base abstract `Dashboard` class.

**AMD Module**

| `1` | `require([`"cdf/Dashboard.Bootstrap"`],`function`(Dashboard) {`/\* code goes here \*/ });\`\` |
| --- | --------------------------------------------------------------------------------------------- |

\*\*See also:\*\*\`Dashboard\` , Bootstrap

## Extends

cdf.dashboard.Dashboard

## Constructor

| Name            | Description                       |
| --------------- | --------------------------------- |
| new Dashboard() | Represents a Bootstrap dashboard. |

## Members

| Name                                                             | Description                                                                                                      |
| ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| \_i18nCurrentLanguageCode : `string`Protected                    | The dashboard's current language code.                                                                           |
| \_i18nSupport : `object`Protected                                | Localization object.                                                                                             |
| addIns : `Object`Protected                                       | Serves as a container for holding the registered add-ins.                                                        |
| args : ``Array.<`string`>``Deprecated                            | Array of arguments.                                                                                              |
| blockUiOptions : `Object`Protected                               | Holds the dashboard jQuery.blockUI options.                                                                      |
| CDF\_ERROR\_DIV : `string`Deprecated                             | Legacy identifier of the HTML div element used for showing errors.                                               |
| components : ``Array.<`cdf.components.BaseComponent`>``Protected | Array which stores all components in the dashboard.                                                              |
| context : `Object`Protected                                      | The dashboard context `object` used for holding user and server session data.                                    |
| dataSources : ``Array.<`Object`>``Protected                      | Map of key value pairs: data source name - data source value.                                                    |
| debug : `number`Protected                                        | The dashboard debug level.                                                                                       |
| ERROR\_CODES : `Object`Constant Protected                        | Dashboard error codes.                                                                                           |
| escapeParameterValues : `Boolean`Protected                       | Defines if the parameter value needs to be encoded before being stored.                                          |
| flatParameters : `Boolean`Protected                              | Defines if parameters are stored in flat names or in nested objects.                                             |
| globalContext : `boolean`Deprecated                              | Determines if components and parameters are retrieved from the `window` `object` or from the dashboard instance. |
| initCounter : `Number`Deprecated Protected                       | Init counter.                                                                                                    |
| initialStorage : `Object`Protected                               | Holds the dashboard `storage` value available during the dashboard initialization.                               |
| isDisposed : `boolean`Protected                                  | The dashboard is in a disposed state.                                                                            |
| isSilent : `boolean`Protected                                    | Allows disabling dashboard notifications.                                                                        |
| lastServerResponse : `Number`Protected                           | Last server response timestamp.                                                                                  |
| LEGACY\_STORAGE : `String`Deprecated Constant                    | Legacy storage parameter prefix.                                                                                 |
| legacyPriority : `number`Deprecated Protected                    | Legacy dashboard components do not have priority, so we will assign a very low priority to them.                 |
| logLifecycle : `boolean`Protected                                | Flag indicating if the lifecycle events should be logged.                                                        |
| monthNames : ``Array.<`string`>``Deprecated                      | Array of month names.                                                                                            |
| parameterModel : `Backbone.Model`Protected                       | Backbone model connected with the parameters.                                                                    |
| parameters : `Array`Protected                                    | Store of key value pairs: parameter name - parameter value.                                                      |
| queryFactories : `Object`Protected                               | Container used for registering query types and instantiating queries.                                            |
| refreshEngine : `cdf.dashboard.RefreshEngine`Protected           | The `RefreshEngine` which manages the component refresh cycle.                                                   |
| runningCalls : `Number`Protected                                 | Running calls counter.                                                                                           |
| serverCheckResponseTimeout : `Number`Protected                   | Timeout value in milliseconds.                                                                                   |
| storage : `Object`Protected                                      | Allows a user to persist parameters server-side to be used across different dashboards.                          |
| STORAGE : `String`Constant                                       | Storage parameters prefix.                                                                                       |
| view : `Object`Protected                                         | A view is a snapshot of the dashboard parameter's state, useful to restore a dashboard to a previous state.      |
| viewFlags : `Object`Constant                                     | Object used to store the available view flag values (read only).                                                 |
| viewParameters : `Object`Protected                               | Map containing the list of parameters of a dashboard and their `view flag`.                                      |
| webAppPath : `String`Protected                                   | The current webapp path.                                                                                         |

## Methods

| Name                                                                                                                   | Description                                                                                                                |
| ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| \_disposeComponents()Protected                                                                                         | Clears resources associated with the dashboard components.                                                                 |
| \_disposeParameters()Protected                                                                                         | Clears resources associated with the dashboard instance parameters.                                                        |
| \_disposeStorage()Protected                                                                                            | Clears resources associated with the dashboard storage.                                                                    |
| \_disposeViews()Protected                                                                                              | Clears resources associated with the dashboard instance views.                                                             |
| \_throwIfDisposed()Protected                                                                                           | Throws an error if the Dashboard is already disposed.                                                                      |
| addComponent(component, options) : `cdf.dashboard.Dashboard`                                                           | Adds an instance of a component to the dashboard.                                                                          |
| addComponents(components)                                                                                              | Adds an array of component instances to the dashboard.                                                                     |
| addDataSource(name, obj, force)                                                                                        | Adds a new data source.                                                                                                    |
| addParameter(parameterName, parameterValue) : `Object`                                                                 | Adds a new parameter to the parameter module.                                                                              |
| blockUIwithDrag()                                                                                                      | Renders a blocking div which can be dragged.                                                                               |
| callPentahoAction(obj, solution, path, action, parameters, callback) : `Object` \| `string`Deprecated                  | Calls an xaction.                                                                                                          |
| checkServer() : `boolean`                                                                                              | Executes a jQuery.ajax to test the connection to the server.                                                               |
| cleanStorage()                                                                                                         | Resets the `storage` value to an empty `object` and issues a jQuery.ajax request to delete the value stored in the server. |
| createAndCleanErrorDiv()Deprecated                                                                                     | Creates an empty HTML div element for showing errors.                                                                      |
| decrementRunningCalls()                                                                                                | Decrements the running calls counter.                                                                                      |
| detectQueryType(qd) : `String` \| `undefined`                                                                          | Given a query definition object, returns its query type.                                                                   |
| dispose()                                                                                                              | Clears resources associated with the dashboard instance, if it wasn't already disposed.                                    |
| errorNotification(err, ph)                                                                                             | Displays an error notification if the dashboard is not in silent mode.                                                     |
| executeAjax(returnType, url, params, func) : `Object` \| `string`Deprecated                                            | Executes an Ajax request.                                                                                                  |
| fetchData(cd, params, callback)Deprecated                                                                              | Fetches data from the server according to a query definition `object`.                                                     |
| fireChange(parameter, value)                                                                                           | Changes the value of a parameter, triggering a `*parameter*:fireChange` event.                                             |
| generateBookmarkState() : `Object`                                                                                     | Generates a bookmark state using stored values.                                                                            |
| getAddIn(type, subType, addInName) : `cdf.AddIn`                                                                       | Gets the add-in from the add-in registry.                                                                                  |
| getBaseQuery() : `cdf.queries.BaseQuery`                                                                               | Gets the base query object constructor from where other query types can be extended.                                       |
| getBookmarkState() : `Object`                                                                                          | Gets the bookmark state URL decoded.                                                                                       |
| getComp()                                                                                                              | Alias for `getComponent`.                                                                                                  |
| getComponent(name) : `cdf.components.BaseComponent` \| `undefined`                                                     | Gets the component instance from a given name.                                                                             |
| getComponentByName()                                                                                                   | Alias for `getComponent`.                                                                                                  |
| getComponentIndex(compOrNameOrIndex) : `number`                                                                        | Gets the index of a component.                                                                                             |
| getDataSource(obj) : `Object` \| `undefined`                                                                           | Gets the data source with the provided name.                                                                               |
| getDataSourceQuery(obj) : `Object` \| `undefined`                                                                      | Gets a query from `getQuery` using the data source with the provided name.                                                 |
| getErrorObj(errorCode) : `Object`                                                                                      | Gets an error code message.                                                                                                |
| getMessagesPath() : `string`Abstract                                                                                   | Gets the path from which to load the locale-specific properties files.                                                     |
| getParam(parameterName) : `Object`                                                                                     | Alias for `getParameterValue`.                                                                                             |
| getParameterValue(parameterName) : `Object`                                                                            | Gets a parameter value.                                                                                                    |
| getQuery(type, opts) : `cdf.queries.BaseQuery`                                                                         | Given a type and options, returns the query object for running that particular query.                                      |
| getRunningCalls() : `number`                                                                                           | Returns the number of running calls.                                                                                       |
| getSettingsValue(key, value)Deprecated                                                                                 | Gets a setting value from the server.                                                                                      |
| getUnboundParameters() : `Array.<`string`>`                                                                            | Gets a list of the names of the dashboard parameters with the view flag set to `viewFlags.UNBOUND`.                        |
| getViewParameters() : `Object`                                                                                         | Gets a map with the dashboard parameters with the view flag set to `viewFlags.VIEW` or `viewFlags.UNBOUND`.                |
| getWcdfSettings() : `Object`Abstract                                                                                   | Gets the dashboard's wcdfSettings.                                                                                         |
| getWebAppPath() : `string`                                                                                             | Gets the current webapp path.                                                                                              |
| handleServerError()                                                                                                    | Handles a server error.                                                                                                    |
| hasAddIn(type, subType, addInName) : `boolean`                                                                         | Checks if the add-in exists in the add-in registry.                                                                        |
| hasQuery(type) : `boolean`                                                                                             | Determines if a given query type is registered in the current dashboard.                                                   |
| hideProgressIndicator(force)                                                                                           | Hides the progress indicator if the dashboard is not in silent mode.                                                       |
| incrementRunningCalls()                                                                                                | Increments the running calls counter.                                                                                      |
| init(components)                                                                                                       | Dashboard's initialization function.                                                                                       |
| isBookmarkable(parameter) : `boolean`                                                                                  | Checks if a `parameter` is bookmarkable.                                                                                   |
| isComponentUpdating(the)                                                                                               | Cheks if a component is being updated in the dashboard lifecycle.                                                          |
| isValidQueryDefinition(queryDefinition) : `boolean`                                                                    | Tests if a query definition is valid or not.                                                                               |
| isViewParameter(parameter) : `string`                                                                                  | Returns the view flag value of a given parameter.                                                                          |
| listAddIns(type, subType) : `Array.<`cdf.AddIn`>`                                                                      | Lists registered add-ins of a given type and subtype.                                                                      |
| listQueries() : `Array.<`String`>`                                                                                     | Lists the registered query types in this dashboard.                                                                        |
| loadStorage()                                                                                                          | Loads the `storage` value from the server.                                                                                 |
| loginAlert(newOpts)                                                                                                    | Shows a login error notification if the dashboard is not in silent mode.                                                   |
| normalizeId(id) : `string`Abstract                                                                                     | Normalizes a DOM element identifier.                                                                                       |
| parseXActionResult(obj, html) : `Object`Deprecated                                                                     | Parses the xaction result.                                                                                                 |
| pentahoAction(solution, path, action, params, func) : `Object` \| `string`Deprecated                                   | Another way to call an xaction.                                                                                            |
| pentahoServiceAction(serviceMethod, returntype, solution, path, action, params, func) : `Object` \| `string`Deprecated | Calls an xaction.                                                                                                          |
| persistBookmarkables(param)                                                                                            | Persists a bookmark state.                                                                                                 |
| processChange(object\_name)                                                                                            | Processes a change in a component.                                                                                         |
| registerAddIn(type, subType, addIn)                                                                                    | Registers an add-in to be used only by this dashboard instance.                                                            |
| registerGlobalAddIn(type, subType, addIn)                                                                              | Registers a global add-in.                                                                                                 |
| registerQuery(type, query)                                                                                             | Registers a new query type constructor to be used by the dashboard instance.                                               |
| removeComponent(compOrNameOrIndex) : `cdf.components.BaseComponent` \| `undefined`                                     | Removes a component from the `components` array.                                                                           |
| removeDataSource(obj)                                                                                                  | Removes the data source with the provided name.                                                                            |
| resetAll()                                                                                                             | Resets the dashboard.                                                                                                      |
| resetRunningCalls()                                                                                                    | Resets the running calls counter and hides the progress indicator.                                                         |
| restoreBookmarkables()                                                                                                 | Restores the bookmark state.                                                                                               |
| restoreView()                                                                                                          | Restores the dashboard parameters stored in a `view`.                                                                      |
| saveStorage()                                                                                                          | Saves the `storage` value in the server.                                                                                   |
| setAddInDefaults(type, subType, addInName, defaults)                                                                   | Sets the default options of an add-in.                                                                                     |
| setBookmarkable(parameter, value)                                                                                      | Sets a pair parameter/value as bookmarkable.                                                                               |
| setBookmarkState(state)                                                                                                | Overrides a bookmark state with a given `state`.                                                                           |
| setDataSource(name, obj)                                                                                               | Adds a data source overriding any existing one with the same name.                                                         |
| setGlobalContext(globalContext)Deprecated                                                                              | Sets the `globalContext` value.                                                                                            |
| setI18nSupport(locale, i18nRef)                                                                                        | Sets the current locale and i18n options.                                                                                  |
| setParam(parameterName, parameterValue, isNotified) : `undefined`                                                      | Alias for `setParameter`.                                                                                                  |
| setParameter(parameterName, parameterValue, isNotified)                                                                | Stores a parameter with a certain value.                                                                                   |
| setParameterViewMode(parameter, value)                                                                                 | Sets the view flag for a given parameter.                                                                                  |
| setSettingsValue(name, object)Deprecated                                                                               | Sets a setting in the server.                                                                                              |
| showErrorTooltip()Deprecated                                                                                           | Creates a tooltip for showing errors.                                                                                      |
| showProgressIndicator()                                                                                                | Makes the progress indicator visible if the dashboard is not in silent mode.                                               |
| syncDebugLevel() : `number`                                                                                            | Sets the `debug` level.                                                                                                    |
| update(component)                                                                                                      | Adds a component to the "to be updated" queue.                                                                             |
| updateComponent(object)                                                                                                | Updates a specific component.                                                                                              |
| urlAction(url, params, func) : `Object` \| `string`Deprecated                                                          | Calls an arbitrary URL expecting the result content type to be xml.                                                        |

## Events

| Name                            | Description                                                 |
| ------------------------------- | ----------------------------------------------------------- |
| cdf:loginError                  | Event triggered when login fails.                           |
| cdf:postInit                    | Event triggered after dashboard initialization.             |
| cdf:preInit                     | Event triggered before dashboard initialization.            |
| cdf:serverError                 | Event triggered when a server error occurs.                 |
| *parameterName*:fireChange(obj) | Event triggered when the dashboard parameter value changes. |

## Constructor Details

<table data-header-hidden><thead><tr><th></th></tr></thead><tbody><tr><td><strong>new Dashboard</strong>()</td></tr><tr><td><p>**Source:**Dashboard.Bootstrap.js, line 14</p><p><strong>See also:</strong><code>Dashboard</code> , Bootstrap</p><p><strong>Example</strong></p><pre><code>require(['cdf/Dashboard.Bootstrap', 'cdf/components/ButtonComponent'],
function(Dashboard, ButtonComponent) {
var dashboard = new Dashboard();

dashboard.addParameter("input", "");

dashboard.addComponent(new ButtonComponent({
name: "buttonComponent",
type: "button",
listeners:\[],
htmlObject: "buttonObject",
label: "A button",
expression: function() {
this.setLabel('Yes, a clickable button');
alert('Button was clicked');
},
executeAtStart: true,
preChange: function() { return true; },
postChange: function() { return true; },
successCallback: function(data) {},
failureCallback: function() {}
}));
dashboard.init();
}); </code></pre></td></tr></tbody></table>

\## Members Details

| \_i18nCurrentLanguageCode: `string`Protected                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>The dashboard's current language code, used by other localizable components.</p><p>\*\*Source:\*\*dashboard/Dashboard.i18n.js, line 61</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#\_i18nCurrentLanguageCode</p> |

| \_i18nSupport: `object`Protected                                                                                                                                                                                                                            |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Localization object, which will contain the property/value map and the method to get a value from a property.</p><p>\*\*Source:\*\*dashboard/Dashboard.i18n.js, line 45</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#\_i18nSupport</p> |

| addIns: `Object`Protected                                                                                                                                                                                                               |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Serves as a container for holding the registered add-ins of the respective dashboard instance.</p><p>\*\*Source:\*\*dashboard/Dashboard.addIns.js, line 86</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#addIns</p> |

| args: ``Array.<`string`>``Deprecated                                                                                                                 |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Array of arguments.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 282</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#args</p> |

| blockUiOptions: `Object`Protected                                                                                                                                                                   |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Holds the dashboard jQuery.blockUI options.</p><p>\*\*Source:\*\*dashboard/Dashboard.notifications.js, line 66</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#blockUiOptions</p> |

| CDF\_ERROR\_DIV: `string`Deprecated                                                                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Legacy identifier of the HTML div element used for showing errors.</p><p>\*\*Source:\*\*dashboard/Dashboard.legacy.js, line 199</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#CDF\_ERROR\_DIV</p><p>\*\*Default Value:\*\*cdfErrorDiv</p> |

| components: ``Array.<`cdf.components.BaseComponent`>``Protected                                                                                                                                                      |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Array of instances of <code>BaseComponents</code> in the dashboard.</p><p>\*\*Source:\*\*dashboard/Dashboard.components.js, line 41</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#components</p> |

| context: `Object`Protected                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>The dashboard context is used for holding user and server session information, such as the current locale and session timeout settings.</p><p>It can be initialized in two different ways. The main way is via the dashboard constructor. If not, it will be initialized via the <code>Dashboard</code> AMD module configuration. If no context configuration is available, it will be initialized as an empty <code>object</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.context.js, line 43</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#context</p> |

| dataSources: ``Array.<`Object`>``Protected                                                                                                                                                                                                                                               |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Map of key value pairs where the keys are the data source names and the values are the corresponding data source <code>object</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.dataSources.js, line 39</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#dataSources</p> |

| debug: `number`Protected                                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>The dashboard debug level.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 329</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#debug</p><p>\*\*Default Value:\*\*1</p> |

| ERROR\_CODES: `Object`Constant Protected                                                                                                                                                          |                              |                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | ----------------------------------------- |
| <p>Contains the default dashboard error codes.</p><p>\*\*Source:\*\*dashboard/Dashboard.notifications.js, line 46</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#ERROR\_CODES</p> |                              |                                           |
| Name                                                                                                                                                                                              | Default Value                | Description                               |
| QUERY\_TIMEOUT : `string`                                                                                                                                                                         | "Query timeout reached"      | Query timeout error message.              |
| COMPONENT\_ERROR : `string`                                                                                                                                                                       | "Error processing component" | Error processing component error message. |

| Name                        | Default Value                | Description                               |
| --------------------------- | ---------------------------- | ----------------------------------------- |
| QUERY\_TIMEOUT : `string`   | "Query timeout reached"      | Query timeout error message.              |
| COMPONENT\_ERROR : `string` | "Error processing component" | Error processing component error message. |

| escapeParameterValues: `Boolean`Protected                                                                                                                                                                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Defines if the parameter value needs to be encoded before being stored.</p><p>If true, then <code>encode\_prepare\_arr</code> is called before the parameter value gets stored.</p><p>\*\*Source:\*\*dashboard/Dashboard.parameters.js, line 74</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#escapeParameterValues</p> |

| flatParameters: `Boolean`Protected                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Defines if parameters are stored in flat names or in nested objects.</p><p>For instance, storing parameter name "param1.param2" with <code>flatParameters=true</code> will create a parameter in the root of the parameter store, while with <code>flatParameters=false</code>, a nested object will be created.</p><p>\*\*Source:\*\*dashboard/Dashboard.parameters.js, line 85</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#flatParameters</p> |

| globalContext: `boolean`Deprecated                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>Determines if components and parameters are retrieved from the <code>window</code> <code>object</code> or from the dashboard instance.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 212</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#globalContext</p><p>\*\*Default Value:\*\*false</p> |

| initCounter: `Number`Deprecated Protected                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Counter which stores the number of components in the dashboard being initialized. This counter is incremented for every component in the dashboard that is initialized and decremented afterwards. The end result after the initialization process should be zero.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 44</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#initCounter</p> |

| initialStorage: `Object`Protected                                                                                                                                                                                                               |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Holds the dashboard <code>storage</code> value available during the dashboard initialization.</p><p>\*\*Source:\*\*dashboard/Dashboard.storage.js, line 54</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#initialStorage</p> |

| isDisposed: `boolean`Protected                                                                                                                                                                                 |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>The dashboard is in a disposed state.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 339</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#isDisposed</p><p>\*\*Default Value:\*\*false</p> |

| isSilent: `boolean`Protected                                                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>Allows disabling dashboard notifications.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 295</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#isSilent</p> |

| lastServerResponse: `Number`Protected                                                                                                                                                                                                              |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Last server response timestamp in milliseconds, which used to know if the session expired.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 62</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#lastServerResponse</p> |

| LEGACY\_STORAGE: `String`Deprecated Constant                                                                                                                                                                                                                                                                  |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Legacy storage parameter prefix.</p><p>This allows users to store parameters between dashboard renders.</p><p>\*\*Source:\*\*dashboard/Dashboard.parameters.js, line 96</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#LEGACY\_STORAGE</p><p>\*\*Default Value:\*\*Dashboards.storage.</p> |

| legacyPriority: `number`Deprecated Protected                                                                                                                                                                                                                                           |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Legacy dashboard components do not have priority, so we will assign a very low priority to them.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 263</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#legacyPriority</p><p><strong>Default Value:</strong>-1000</p> |

| logLifecycle: `boolean`Protected                                                                                                                                                                                                    |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Flag indicating if the lifecycle events should be logged.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 273</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#logLifecycle</p><p>\*\*Default Value:\*\*true</p> |

| monthNames: ``Array.<`string`>``Deprecated                                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>Array of month names.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 292</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#monthNames</p> |

| parameterModel: `Backbone.Model`Protected                                                                                                                                                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Backbone model connected with the parameters to provide an events system over the CDF parameters.</p><p>\*\*Source:\*\*dashboard/Dashboard.parameters.js, line 48</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#parameterModel</p><p>\*\*See also:\*\*Backbone.Model</p> |

| parameters: `Array`Protected                                                                                                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Object which stores key value pairs with parameter name - parameter value.</p><p>\*\*Source:\*\*dashboard/Dashboard.parameters.js, line 38</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#parameters</p> |

| queryFactories: `Object`Protected                                                                                                                                                                                                                                                                                                                                                                                                               |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Container used for registering query types and instantiating queries.</p><p>Implements the factory pattern, providing a generic interface for creating query instances of the specified type.</p><p>Query types registered in this container will be accessible only by the dashboard instance.</p><p>\*\*Source:\*\*dashboard/Dashboard.query.js, line 69</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#queryFactories</p> |

| refreshEngine: `cdf.dashboard.RefreshEngine`Protected                                                                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>The <code>RefreshEngine</code> which manages the component refresh cycle.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 201</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#refreshEngine</p> |

| runningCalls: `Number`Protected                                                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Running calls counter used to control the progress indicator in asynchronous calls.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 53</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#runningCalls</p> |

| serverCheckResponseTimeout: `Number`Protected                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Timeout value in milliseconds. If <code>serverCheckResponseTimeout</code> passes between ajax communications, then when the next <code>updateComponent</code> is called, the dashboard will first <code>checkServer</code>, showing a <code>loginAlert</code> if it is unable to connect to the server.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 75</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#serverCheckResponseTimeout</p> |

| storage: `Object`Protected                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>The dashboard storage is used for persisting parameters on the server and making them available to other dashboards. It is sometimes referred to as a user parameter store.</p><p>It can be initialized in two different ways. The main way is via the dashboard constructor. Otherwise, it will be initialized via the <code>Dashboard</code> AMD module configuration. If no configuration is available, it will be initialized as an empty <code>object</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.storage.js, line 43</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#storage</p> |

| STORAGE: `String`Constant                                                                                                                                                                                                                                                             |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Storage parameters prefix.</p><p>This allows users to store parameters between dashboard renders.</p><p>\*\*Source:\*\*dashboard/Dashboard.parameters.js, line 105</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#STORAGE</p><p>\*\*Default Value:\*\*storage.</p> |

| view: `Object`Protected                                                                                                                                                                                                                                                                                                                                                                                                                          |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>Holds a snapshot of the dashboard parameter's state, which is useful to restore a dashboard to a previous state.</p><p>It can be initialized in two different ways. The main way is via the dashboard constructor. If not, it will be initialized via the <code>Dashboard</code> AMD module configuration.</p><p>\*\*Source:\*\*dashboard/Dashboard.views.js, line 56</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#view</p> |

| viewFlags: `Object`Constant                                                                                                                                                                                 |               |                                    |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ---------------------------------- |
| <p>Object used to store the available view flag values (read only).</p><p>\*\*Source:\*\*dashboard/Dashboard.views.js, line 68</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#viewFlags</p> |               |                                    |
| Name                                                                                                                                                                                                        | Default Value | Description                        |
| UNUSED : `string`                                                                                                                                                                                           | "unused"      | Flag value for unused parameters.  |
| UNBOUND : `string`                                                                                                                                                                                          | "unbound"     | Flag value for unbound parameters. |
| VIEW : `string`                                                                                                                                                                                             | "view"        | Flag value for view parameters.    |

| Name               | Default Value | Description                        |
| ------------------ | ------------- | ---------------------------------- |
| UNUSED : `string`  | "unused"      | Flag value for unused parameters.  |
| UNBOUND : `string` | "unbound"     | Flag value for unbound parameters. |
| VIEW : `string`    | "view"        | Flag value for view parameters.    |

| viewParameters: `Object`Protected                                                                                                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Map containing the list of parameters of a dashboard. The keys are the parameter names and the values are the <code>view flag</code> value.</p><p>\*\*Source:\*\*dashboard/Dashboard.views.js, line 42</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#viewParameters</p> |

| webAppPath: `String`Protected                                                                                                                                   |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>The current webapp path.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 184</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#webAppPath</p> |

\## Methods Details

| **\_disposeComponents**()Protected                                                                                                                                                                                                                  |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Dispose resources that the dashboard components may have, and that are no longer needed.</p><p>\*\*Source:\*\*dashboard/Dashboard.components.js, line 251</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#\_disposeComponents</p> |

| **\_disposeParameters**()Protected                                                                                                                                                                                                                  |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Dispose resources that the dashboard parameters may have, and that are no longer needed.</p><p>\*\*Source:\*\*dashboard/Dashboard.parameters.js, line 261</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#\_disposeParameters</p> |

| **\_disposeStorage**()Protected                                                                                                                                                                                                           |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Dispose resources that the dashboard storage may have, and that are no longer needed.</p><p>\*\*Source:\*\*dashboard/Dashboard.storage.js, line 83</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#\_disposeStorage</p> |

| **\_disposeViews**()Protected                                                                                                                                                                                                       |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Dispose resources that the dashboard views may have, and that are no longer needed.</p><p>\*\*Source:\*\*dashboard/Dashboard.views.js, line 99</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#\_disposeViews</p> |

| **\_throwIfDisposed**()Protected                                                                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Throws an error if the Dashboard is already disposed.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 104</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#\_throwIfDisposed</p> |

| **addComponent**(component, options) : `cdf.dashboard.Dashboard`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                                                         |                                          |   |      |             |   |                           |                                                       |      |   |   |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | ---------------------------------------- | - | ---- | ----------- | - | ------------------------- | ----------------------------------------------------- | ---- | - | - |
| <p>Adds an instance of <code>BaseComponent</code> to the dashboard components array if it was not already added.</p><p>If the <code>component</code> does not have a valid property <code>component.name</code>, or if the property is not a valid string, an exception is thrown.</p><p>The <code>options</code> parameter is optional and when it is absent, the component is added to the end of the components array. The same rule is applied if <code>options.index</code> is false. If not, the new component is appended to the array at position <code>options.index</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.components.js, line 133</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#addComponent</p><p> | Name                                                    | Description                              |   | ---- | ----------- |   | `cdf.dashboard.Dashboard` | The dashboard instance where the component was added. | </p> |   |   |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Default Value                                           | Summary                                  |   |      |             |   |                           |                                                       |      |   |   |
| component : `cdf.components.BaseComponent`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |                                                         | The new component to be added.           |   |      |             |   |                           |                                                       |      |   |   |
| options : `Object`Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |                                                         | An option object.                        |   |      |             |   |                           |                                                       |      |   |   |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Default Value                                           | Summary                                  |   |      |             |   |                           |                                                       |      |   |   |
| index : `Number`Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                         | The index at which to add the component. |   |      |             |   |                           |                                                       |      |   |   |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Description                                             |                                          |   |      |             |   |                           |                                                       |      |   |   |
| `Error`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | The component is invalid.                               |                                          |   |      |             |   |                           |                                                       |      |   |   |
| `Error`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | The component already exists in the dashboard instance. |                                          |   |      |             |   |                           |                                                       |      |   |   |

| Name                     | Default Value | Summary                                  |
| ------------------------ | ------------- | ---------------------------------------- |
| index : `Number`Optional |               | The index at which to add the component. |

| Name    | Description                                             |
| ------- | ------------------------------------------------------- |
| `Error` | The component is invalid.                               |
| `Error` | The component already exists in the dashboard instance. |

| Name                                       | Default Value | Summary                                  |
| ------------------------------------------ | ------------- | ---------------------------------------- |
| component : `cdf.components.BaseComponent` |               | The new component to be added.           |
| options : `Object`Optional                 |               | An option object.                        |
| Name                                       | Default Value | Summary                                  |
| index : `Number`Optional                   |               | The index at which to add the component. |

| Name                     | Default Value | Summary                                  |
| ------------------------ | ------------- | ---------------------------------------- |
| index : `Number`Optional |               | The index at which to add the component. |

| **addComponents**(components)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                                                                    |                                      |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ | ------------------------------------ |
| <p>Adds one or more components to the dashboard. If a component was already added, it will not be replaced.</p><p>It iterates through the array and calls <code>addComponent</code> for each component.</p><p>Along with the <code>addComponent</code> behaviour, if a component in the array fails to be added to the dashboard instance, an error is thrown and the execution stops.</p><p>\*\*Source:\*\*dashboard/Dashboard.components.js, line 107</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#addComponents</p><p><strong>See also:</strong><code>addComponent</code></p> |                                                                    |                                      |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Default Value                                                      | Summary                              |
| components : `Array.<`cdf.components.BaseComponent`>`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |                                                                    | The array of components to be added. |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Description                                                        |                                      |
| `Error`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Error if a component in the array is invalid or was already added. |                                      |

| Name    | Description                                                        |
| ------- | ------------------------------------------------------------------ |
| `Error` | Error if a component in the array is invalid or was already added. |

| Name                                                  | Default Value | Summary                              |
| ----------------------------------------------------- | ------------- | ------------------------------------ |
| components : `Array.<`cdf.components.BaseComponent`>` |               | The array of components to be added. |

| **addDataSource**(name, obj, force)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |               |                                                                                       |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------------------------------------------------------------------------------- |
| <p>Adds a data source given a name, the data source object to be added, and an optional <code>boolean</code> indicating if any data source with the same name should be deleted. If the <code>name</code> parameter is an <code>object</code>, its <code>name</code> property will be used as the data source name and the <code>obj</code> parameter will be used as the flag for indicating that previous data sources with the same name were overwritten.</p><p>\*\*Source:\*\*dashboard/Dashboard.dataSources.js, line 93</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#addDataSource</p> |               |                                                                                       |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Default Value | Summary                                                                               |
| name : `string` \| `Object`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |               | The name of the data source.                                                          |
| obj : `Object` \| `boolean`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |               | The data source to be added.                                                          |
| force : `boolean` \| `undefined`Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | false         | A flag indicating if any previous data sources with the same name are to be replaced. |

| Name                                     | Default Value | Summary                                                                               |
| ---------------------------------------- | ------------- | ------------------------------------------------------------------------------------- |
| name : `string` \| `Object`              |               | The name of the data source.                                                          |
| obj : `Object` \| `boolean`              |               | The data source to be added.                                                          |
| force : `boolean` \| `undefined`Optional | false         | A flag indicating if any previous data sources with the same name are to be replaced. |

| **addParameter**(parameterName, parameterValue) : `Object`                                                                                                                                                                                                                                                                                                                                                    |                                                                                      |                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ----------------------------------- |
| <p>Adds a new parameter to the parameter module.</p><p>Receives a parameter name and an initial value, which will be used if the parameter is not available in the parameter model. Otherwise, the value returned by <code>getParameterValue</code> is used.</p><p>\*\*Source:\*\*dashboard/Dashboard.parameters.js, line 280</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#addParameter</p> |                                                                                      |                                     |
| Name                                                                                                                                                                                                                                                                                                                                                                                                          | Default Value                                                                        | Summary                             |
| parameterName : `string`                                                                                                                                                                                                                                                                                                                                                                                      |                                                                                      | The name of the parameter.          |
| parameterValue : `Object`                                                                                                                                                                                                                                                                                                                                                                                     |                                                                                      | The initial value of the parameter. |
| Name                                                                                                                                                                                                                                                                                                                                                                                                          | Description                                                                          |                                     |
| `Object`                                                                                                                                                                                                                                                                                                                                                                                                      | The value assigned to the parameter or `undefined` if the parameter name is invalid. |                                     |

| Name     | Description                                                                          |
| -------- | ------------------------------------------------------------------------------------ |
| `Object` | The value assigned to the parameter or `undefined` if the parameter name is invalid. |

| Name                      | Default Value | Summary                             |
| ------------------------- | ------------- | ----------------------------------- |
| parameterName : `string`  |               | The name of the parameter.          |
| parameterValue : `Object` |               | The initial value of the parameter. |

| **blockUIwithDrag**()                                                                                                                                                                                 |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Renders a blocking div which can be dragged.</p><p>\*\*Source:\*\*dashboard/Dashboard.notifications.js, line 99</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#blockUIwithDrag</p> |

| **callPentahoAction**(obj, solution, path, action, parameters, callback) : `Object` \| `string`Deprecated                                                                                                                                                          |                                                                                                                                                     |                                                                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| <p>Calls an xaction.</p><p>\*\*Source:\*\*dashboard/Dashboard.legacy.js, line 56</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#callPentahoAction</p><p><strong>See also:</strong><code>pentahoAction</code> , <code>parseXActionResult</code></p> |                                                                                                                                                     |                                                                                                   |
| Name                                                                                                                                                                                                                                                               | Default Value                                                                                                                                       | Summary                                                                                           |
| obj : `Object`                                                                                                                                                                                                                                                     |                                                                                                                                                     | DOM object where the response from the xaction should be written.                                 |
| solution : `string`                                                                                                                                                                                                                                                |                                                                                                                                                     | The solution folder.                                                                              |
| path : `string`                                                                                                                                                                                                                                                    |                                                                                                                                                     | Path to the xaction. Can be the full path, in which case you do not need the solution and action. |
| action : `string`                                                                                                                                                                                                                                                  |                                                                                                                                                     | The xaction name.                                                                                 |
| parameters : `Object`                                                                                                                                                                                                                                              |                                                                                                                                                     | Parameter object to send to the xaction.                                                          |
| callback : `function`                                                                                                                                                                                                                                              |                                                                                                                                                     | Callback function to call when the xaction responds.                                              |
| Name                                                                                                                                                                                                                                                               | Description                                                                                                                                         |                                                                                                   |
| `Object` \| `string`                                                                                                                                                                                                                                               | If `callback` is a `function` it returns the value of executing `pentahoAction`. Otherwise, it returns the value of executing `parseXActionResult`. |                                                                                                   |

| Name                 | Description                                                                                                                                         |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Object` \| `string` | If `callback` is a `function` it returns the value of executing `pentahoAction`. Otherwise, it returns the value of executing `parseXActionResult`. |

| Name                  | Default Value | Summary                                                                                           |
| --------------------- | ------------- | ------------------------------------------------------------------------------------------------- |
| obj : `Object`        |               | DOM object where the response from the xaction should be written.                                 |
| solution : `string`   |               | The solution folder.                                                                              |
| path : `string`       |               | Path to the xaction. Can be the full path, in which case you do not need the solution and action. |
| action : `string`     |               | The xaction name.                                                                                 |
| parameters : `Object` |               | Parameter object to send to the xaction.                                                          |
| callback : `function` |               | Callback function to call when the xaction responds.                                              |

| **checkServer**() : `boolean`                                                                                                                                                                                                                     |                                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- |
| <p>Executes a jQuery.ajax to test the connection to the server. Uses HTTP POST to avoid cache.</p><p>\*\*Source:\*\*dashboard/Dashboard.notifications.js, line 264</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#checkServer</p> |                                               |
| Name                                                                                                                                                                                                                                              | Description                                   |
| `boolean`                                                                                                                                                                                                                                         | `true` if able to connect, `false` otherwise. |

| Name      | Description                                   |
| --------- | --------------------------------------------- |
| `boolean` | `true` if able to connect, `false` otherwise. |

| **cleanStorage**()                                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>Resets the <code>storage</code> value to an empty <code>object</code> and deletes the value stored in the server.</p><p>\*\*Source:\*\*dashboard/Dashboard.storage.js, line 163</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#cleanStorage</p> |

| **createAndCleanErrorDiv**()Deprecated                                                                                                                                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Creates an empty HTML div element, with identifier <code>CDF\_ERROR\_DIV</code> for showing error messages.</p><p>\*\*Source:\*\*dashboard/Dashboard.legacy.js, line 208</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#createAndCleanErrorDiv</p> |

| **decrementRunningCalls**()                                                                                                                                                                                                                         |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Decrements the running calls counter and if it reaches 0, hides the progress indicator.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 145</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#decrementRunningCalls</p> |

| **detectQueryType**(qd) : `String` \| `undefined`                                                                                                                                                                                                                                                                                                                                                         |               |                                             |   |      |             |   |                         |                                                     |      |   |   |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------------------------------------- | - | ---- | ----------- | - | ----------------------- | --------------------------------------------------- | ---- | - | - |
| <p>Given a query definition object, returns its query type. The query can have three groups of types. First <code>cda</code>, with queries using the CDA plugin. Then <code>legacy</code>, using xactions, and an arbitrary value for CPK data sources.</p><p>\*\*Source:\*\*dashboard/Dashboard.query.js, line 154</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#detectQueryType</p><p> | Name          | Description                                 |   | ---- | ----------- |   | `String` \| `undefined` | The query type or `undefined` if none was detected. | </p> |   |   |
| Name                                                                                                                                                                                                                                                                                                                                                                                                      | Default Value | Summary                                     |   |      |             |   |                         |                                                     |      |   |   |
| qd : `Object`                                                                                                                                                                                                                                                                                                                                                                                             |               | The query definition object.                |   |      |             |   |                         |                                                     |      |   |   |
| Name                                                                                                                                                                                                                                                                                                                                                                                                      | Default Value | Summary                                     |   |      |             |   |                         |                                                     |      |   |   |
| dataSource : `String`Optional                                                                                                                                                                                                                                                                                                                                                                             |               | The name of the data source.                |   |      |             |   |                         |                                                     |      |   |   |
| queryType : `String`Optional                                                                                                                                                                                                                                                                                                                                                                              |               | The query type in case it is from CPK.      |   |      |             |   |                         |                                                     |      |   |   |
| query : `Object`Optional                                                                                                                                                                                                                                                                                                                                                                                  |               | The query in case of it being legacy.       |   |      |             |   |                         |                                                     |      |   |   |
| path : `String`Optional                                                                                                                                                                                                                                                                                                                                                                                   |               | The path of the CDA file holding the query. |   |      |             |   |                         |                                                     |      |   |   |
| dataAccessId : `String`Optional                                                                                                                                                                                                                                                                                                                                                                           |               | The name of the query in the CDA file .     |   |      |             |   |                         |                                                     |      |   |   |

| Name                            | Default Value | Summary                                     |
| ------------------------------- | ------------- | ------------------------------------------- |
| dataSource : `String`Optional   |               | The name of the data source.                |
| queryType : `String`Optional    |               | The query type in case it is from CPK.      |
| query : `Object`Optional        |               | The query in case of it being legacy.       |
| path : `String`Optional         |               | The path of the CDA file holding the query. |
| dataAccessId : `String`Optional |               | The name of the query in the CDA file .     |

| Name                            | Default Value | Summary                                     |
| ------------------------------- | ------------- | ------------------------------------------- |
| qd : `Object`                   |               | The query definition object.                |
| Name                            | Default Value | Summary                                     |
| dataSource : `String`Optional   |               | The name of the data source.                |
| queryType : `String`Optional    |               | The query type in case it is from CPK.      |
| query : `Object`Optional        |               | The query in case of it being legacy.       |
| path : `String`Optional         |               | The path of the CDA file holding the query. |
| dataAccessId : `String`Optional |               | The name of the query in the CDA file .     |

| Name                            | Default Value | Summary                                     |
| ------------------------------- | ------------- | ------------------------------------------- |
| dataSource : `String`Optional   |               | The name of the data source.                |
| queryType : `String`Optional    |               | The query type in case it is from CPK.      |
| query : `Object`Optional        |               | The query in case of it being legacy.       |
| path : `String`Optional         |               | The path of the CDA file holding the query. |
| dataAccessId : `String`Optional |               | The name of the query in the CDA file .     |

| **dispose**()                                                                                                                                                                                                                                   |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Dispose resources that the dashboard may have and that are no longer needed, if it wasn't already disposed.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 421</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#dispose</p> |

| **errorNotification**(err, ph)                                                                                                                                                                                                     |               |                                                                          |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------------------------------------------------------------------ |
| <p>Displays an error notification if the dashboard is not in silent mode.</p><p>\*\*Source:\*\*dashboard/Dashboard.notifications.js, line 215</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#errorNotification</p> |               |                                                                          |
| Name                                                                                                                                                                                                                               | Default Value | Summary                                                                  |
| err : `Object`                                                                                                                                                                                                                     |               | An object containing a `msg` property with the error message to display. |
| ph : `Object`Optional                                                                                                                                                                                                              |               | A reference to the HTML element to attach the error message.             |

| Name                  | Default Value | Summary                                                                  |
| --------------------- | ------------- | ------------------------------------------------------------------------ |
| err : `Object`        |               | An object containing a `msg` property with the error message to display. |
| ph : `Object`Optional |               | A reference to the HTML element to attach the error message.             |

| **executeAjax**(returnType, url, params, func) : `Object` \| `string`Deprecated                                                                                                                                                                                                                                                                                                                    |                                                                                                                     |                           |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------- |
| <p>Executes an Ajax request. If no <code>func</code> callback is provided, it executes asynchronously and returns a jQuery XMLHttpRequest (jqXHR) object. Otherwise, it executes jQuery.ajax synchronously and returns the result of the HTTP request.</p><p>\*\*Source:\*\*dashboard/Dashboard.legacy.js, line 103</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#executeAjax</p> |                                                                                                                     |                           |
| Name                                                                                                                                                                                                                                                                                                                                                                                               | Default Value                                                                                                       | Summary                   |
| returnType : `string`                                                                                                                                                                                                                                                                                                                                                                              |                                                                                                                     | The expected return type. |
| url : `string`                                                                                                                                                                                                                                                                                                                                                                                     |                                                                                                                     | The URL to call.          |
| params : `Object`                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                                                     | The parameters object.    |
| func : `function`                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                                                     | Callback function.        |
| Name                                                                                                                                                                                                                                                                                                                                                                                               | Description                                                                                                         |                           |
| `Object` \| `string`                                                                                                                                                                                                                                                                                                                                                                               | If no `func` callback is provided, it returns a jqXHR object. Otherwise, it returns the result of the HTTP request. |                           |

| Name                 | Description                                                                                                         |
| -------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `Object` \| `string` | If no `func` callback is provided, it returns a jqXHR object. Otherwise, it returns the result of the HTTP request. |

| Name                  | Default Value | Summary                   |
| --------------------- | ------------- | ------------------------- |
| returnType : `string` |               | The expected return type. |
| url : `string`        |               | The URL to call.          |
| params : `Object`     |               | The parameters object.    |
| func : `function`     |               | Callback function.        |

| **fetchData**(cd, params, callback)Deprecated                                                                                                                                                                                                                                                                      |               |                                                    |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------- | -------------------------------------------------- |
| <p>Fetches data from the server according to a query definition <code>object</code>. This method is deprecated, so a <code>Query</code> instance should be used instead.</p><p>\*\*Source:\*\*dashboard/Dashboard.legacy.js, line 337</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#fetchData</p> |               |                                                    |
| Name                                                                                                                                                                                                                                                                                                               | Default Value | Summary                                            |
| cd : `Object`                                                                                                                                                                                                                                                                                                      |               | The query definition object.                       |
| params : `Object`                                                                                                                                                                                                                                                                                                  |               | The parameters to use in the query.                |
| callback : `function`                                                                                                                                                                                                                                                                                              |               | The callback `function` to be called with results. |

| Name                  | Default Value | Summary                                            |
| --------------------- | ------------- | -------------------------------------------------- |
| cd : `Object`         |               | The query definition object.                       |
| params : `Object`     |               | The parameters to use in the query.                |
| callback : `function` |               | The callback `function` to be called with results. |

| **fireChange**(parameter, value)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |               |                                                        |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------------------------------------------------ |
| <p>Changes the value of a parameter with the provided name. Triggers the <code>*parameter*:fireChange</code> event and updates the components which listen for changes on the aforementioned parameter.</p><p>Because some browsers will not draw the blockUI widgets until the script has finished, we find the list of components to update, then execute the actual update in a function wrapped in a setTimeout so the running script has the opportunity to finish.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 766</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#fireChange</p><p><strong>Fires:</strong> cdf.event:cdf , cdf.dashboard.Dashboard#event:parameterName:fireChange</p> |               |                                                        |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Default Value | Summary                                                |
| parameter : `string`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |               | The name of the parameter on which to fire the change. |
| value : `Object`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |               | Value for the parameter.                               |

| Name                 | Default Value | Summary                                                |
| -------------------- | ------------- | ------------------------------------------------------ |
| parameter : `string` |               | The name of the parameter on which to fire the change. |
| value : `Object`     |               | Value for the parameter.                               |

| **generateBookmarkState**() : `Object`                                                                                                                                                                         |                                                                               |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| <p>Generates a bookmark state using stored values.</p><p>\*\*Source:\*\*dashboard/Dashboard.bookmarkable.js, line 147</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#generateBookmarkState</p> |                                                                               |
| Name                                                                                                                                                                                                           | Description                                                                   |
| `Object`                                                                                                                                                                                                       | An object with the state of the parameters previously marked as bookmarkable. |

| Name     | Description                                                                   |
| -------- | ----------------------------------------------------------------------------- |
| `Object` | An object with the state of the parameters previously marked as bookmarkable. |

| **getAddIn**(type, subType, addInName) : `cdf.AddIn`                                                                                                                                                                                               |                                               |                                                                                     |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------- | ----------------------------------------------------------------------------------- |
| <p>Gets the add-in with the specified name, subtype and type from the add-in registry for this dashboard.</p><p>\*\*Source:\*\*dashboard/Dashboard.addIns.js, line 155</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getAddIn</p> |                                               |                                                                                     |
| Name                                                                                                                                                                                                                                               | Default Value                                 | Summary                                                                             |
| type : `string`                                                                                                                                                                                                                                    |                                               | Type of the add-in, usually the component type where this add-in will be available. |
| subType : `string`                                                                                                                                                                                                                                 |                                               | The subtype of the add-in.                                                          |
| addInName : `string`                                                                                                                                                                                                                               |                                               | The add-in name.                                                                    |
| Name                                                                                                                                                                                                                                               | Description                                   |                                                                                     |
| `cdf.AddIn` \| `null`                                                                                                                                                                                                                              | The add-in if one is found, `null` otherwise. |                                                                                     |

| Name                  | Description                                   |
| --------------------- | --------------------------------------------- |
| `cdf.AddIn` \| `null` | The add-in if one is found, `null` otherwise. |

| Name                 | Default Value | Summary                                                                             |
| -------------------- | ------------- | ----------------------------------------------------------------------------------- |
| type : `string`      |               | Type of the add-in, usually the component type where this add-in will be available. |
| subType : `string`   |               | The subtype of the add-in.                                                          |
| addInName : `string` |               | The add-in name.                                                                    |

| **getBaseQuery**() : `cdf.queries.BaseQuery`                                                                                                                                                                                       |                             |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
| <p>Gets the base query object constructor from where other query types can be extended.</p><p>\*\*Source:\*\*dashboard/Dashboard.query.js, line 88</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getBaseQuery</p> |                             |
| Name                                                                                                                                                                                                                               | Description                 |
| `cdf.queries.BaseQuery`                                                                                                                                                                                                            | The base query constructor. |

| Name                    | Description                 |
| ----------------------- | --------------------------- |
| `cdf.queries.BaseQuery` | The base query constructor. |

| **getBookmarkState**() : `Object`                                                                                                                                                              |                                            |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| <p>Gets the bookmark state URL decoded.</p><p>\*\*Source:\*\*dashboard/Dashboard.bookmarkable.js, line 215</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getBookmarkState</p> |                                            |
| Name                                                                                                                                                                                           | Description                                |
| `Object`                                                                                                                                                                                       | An object with the current bookmark state. |

| Name     | Description                                |
| -------- | ------------------------------------------ |
| `Object` | An object with the current bookmark state. |

| **getComp**()                                                                                                                                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Alias for <code>getComponent</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.components.js, line 81</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getComp</p> |

| **getComponent**(name) : `cdf.components.BaseComponent` \| `undefined`                                                                                                                                                                                                                                                                                                                                                                                                |                                                                         |                       |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- | --------------------- |
| <p>Gets the component given a string representing the component's name.</p><p>This method iterates over the components array and searches for the component with the name used as the argument. If the component with that name is not found, then <code>undefined</code> is returned.</p><p>\*\*Source:\*\*dashboard/Dashboard.components.js, line 65</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getComponent</p><p><strong>Example</strong></p> |                                                                         |                       |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Default Value                                                           | Summary               |
| name : `String`                                                                                                                                                                                                                                                                                                                                                                                                                                                       |                                                                         | The component's name. |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Description                                                             |                       |
| `cdf.components.BaseComponent`                                                                                                                                                                                                                                                                                                                                                                                                                                        | The instance of `BaseComponent` with the given name.                    |                       |
| `undefined`                                                                                                                                                                                                                                                                                                                                                                                                                                                           | /p                                                                      |                       |
| `1`                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | ``var` `myComponent = myDashboard.getComponent(``"myInputComponent"`);` |                       |

| `1` | ``var` `myComponent = myDashboard.getComponent(``"myInputComponent"`);` |
| --- | ----------------------------------------------------------------------- |

| Name                           | Description                                          |
| ------------------------------ | ---------------------------------------------------- |
| `cdf.components.BaseComponent` | The instance of `BaseComponent` with the given name. |
| `undefined`                    | /p                                                   |

| Name            | Default Value | Summary               |
| --------------- | ------------- | --------------------- |
| name : `String` |               | The component's name. |

| **getComponentByName**()                                                                                                                                                                      |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Alias for <code>getComponent</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.components.js, line 89</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getComponentByName</p> |

| **getComponentIndex**(compOrNameOrIndex) : `number`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                                                           |                                              |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------- | -------------------------------------------- |
| <p>Get the index of the array <code>components</code> that contains the component.</p><p>If <code>compOrNameOrIndex</code> is a <code>string</code>, it searches the component that first matches such name. If <code>compOrNameOrIndex</code> is a <code>number</code>, it returns component index on the components array. Lastly, if <code>compOrNameOrIndex</code> is a component instance, it returns the index where it is in <code>components</code> array.</p><p>\*\*Source:\*\*dashboard/Dashboard.components.js, line 180</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getComponentIndex</p> |                                                           |                                              |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Default Value                                             | Summary                                      |
| compOrNameOrIndex : `cdf.components.BaseComponent` \| `string` \| `number`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |                                                           | The name, index, or the component to search. |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Description                                               |                                              |
| `number`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | The index where the component is at or `-1` if not found. |                                              |

| Name     | Description                                               |
| -------- | --------------------------------------------------------- |
| `number` | The index where the component is at or `-1` if not found. |

| Name                                                                       | Default Value | Summary                                      |
| -------------------------------------------------------------------------- | ------------- | -------------------------------------------- |
| compOrNameOrIndex : `cdf.components.BaseComponent` \| `string` \| `number` |               | The name, index, or the component to search. |

| **getDataSource**(obj) : `Object` \| `undefined`                                                                                                                                                                                                                            |                                                  |                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------ | ------------------------------------------------------------------------------- |
| <p>Gets a data source according to the provided name or query definition object with a <code>dataSource</code> property.</p><p>\*\*Source:\*\*dashboard/Dashboard.dataSources.js, line 142</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getDataSource</p> |                                                  |                                                                                 |
| Name                                                                                                                                                                                                                                                                        | Default Value                                    | Summary                                                                         |
| obj : `string` \| `Object`                                                                                                                                                                                                                                                  |                                                  | The name of the data source or an `object` from which to extract the name from. |
| Name                                                                                                                                                                                                                                                                        | Description                                      |                                                                                 |
| `Object` \| `undefined`                                                                                                                                                                                                                                                     | The data source or `undefined` if none is found. |                                                                                 |

| Name                    | Description                                      |
| ----------------------- | ------------------------------------------------ |
| `Object` \| `undefined` | The data source or `undefined` if none is found. |

| Name                       | Default Value | Summary                                                                         |
| -------------------------- | ------------- | ------------------------------------------------------------------------------- |
| obj : `string` \| `Object` |               | The name of the data source or an `object` from which to extract the name from. |

| **getDataSourceQuery**(obj) : `Object` \| `undefined`                                                                                                                                                                                            |                                                                                          |                                                                                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
| <p>Gets a query from <code>getQuery</code> using the data source with the provided name.</p><p>\*\*Source:\*\*dashboard/Dashboard.dataSources.js, line 158</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getDataSourceQuery</p> |                                                                                          |                                                                                 |
| Name                                                                                                                                                                                                                                             | Default Value                                                                            | Summary                                                                         |
| obj : `string` \| `Object`                                                                                                                                                                                                                       |                                                                                          | The name of the data source or an `object` from which to extract the name from. |
| Name                                                                                                                                                                                                                                             | Description                                                                              |                                                                                 |
| `Object` \| `undefined`                                                                                                                                                                                                                          | The query built using the target data source or `undefined` if no data source was found. |                                                                                 |

| Name                    | Description                                                                              |
| ----------------------- | ---------------------------------------------------------------------------------------- |
| `Object` \| `undefined` | The query built using the target data source or `undefined` if no data source was found. |

| Name                       | Default Value | Summary                                                                         |
| -------------------------- | ------------- | ------------------------------------------------------------------------------- |
| obj : `string` \| `Object` |               | The name of the data source or an `object` from which to extract the name from. |

| **getErrorObj**(errorCode) : `Object`                                                                                                                                                                                                     |                                                                                                                     |                 |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | --------------- |
| <p>Given an error code, returns the registered error object associated with that code.</p><p>\*\*Source:\*\*dashboard/Dashboard.notifications.js, line 155</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getErrorObj</p> |                                                                                                                     |                 |
| Name                                                                                                                                                                                                                                      | Default Value                                                                                                       | Summary         |
| errorCode : `string`                                                                                                                                                                                                                      |                                                                                                                     | The error code. |
| Name                                                                                                                                                                                                                                      | Description                                                                                                         |                 |
| `Object`                                                                                                                                                                                                                                  | An object with a `msg` property containing the error code message or an empty object if the code is not registered. |                 |

| Name     | Description                                                                                                         |
| -------- | ------------------------------------------------------------------------------------------------------------------- |
| `Object` | An object with a `msg` property containing the error code message or an empty object if the code is not registered. |

| Name                 | Default Value | Summary         |
| -------------------- | ------------- | --------------- |
| errorCode : `string` |               | The error code. |

| **getMessagesPath**() : `string`Abstract                                                                                                                                                                                                                                                                                                                                                                                                       |                                                         |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
| <p>Gets the path from which to load the locale-specific properties files.</p><p>If this method returns <code>undefined</code>, which is the most common case, the path will be the dashboard's path.</p><p>It will be overridden returning the appropriate dashboard path in embedded scenarios.</p><p>\*\*Source:\*\*dashboard/Dashboard.i18n.js, line 143</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getMessagesPath</p> |                                                         |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                           | Description                                             |
| `string`                                                                                                                                                                                                                                                                                                                                                                                                                                       | The path to the dashboard's locale-specific text files. |

| Name     | Description                                             |
| -------- | ------------------------------------------------------- |
| `string` | The path to the dashboard's locale-specific text files. |

| **getParam**(parameterName) : `Object`                                                                                                                                                    |                                                                      |                     |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- | ------------------- |
| <p>Alias for <code>getParameterValue</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.parameters.js, line 319</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getParam</p> |                                                                      |                     |
| Name                                                                                                                                                                                      | Default Value                                                        | Summary             |
| parameterName : `String`                                                                                                                                                                  |                                                                      | The parameter name. |
| Name                                                                                                                                                                                      | Description                                                          |                     |
| `Object`                                                                                                                                                                                  | The parameter value or `undefined` if the parameter name is invalid. |                     |

| Name     | Description                                                          |
| -------- | -------------------------------------------------------------------- |
| `Object` | The parameter value or `undefined` if the parameter name is invalid. |

| Name                     | Default Value | Summary             |
| ------------------------ | ------------- | ------------------- |
| parameterName : `String` |               | The parameter name. |

| **getParameterValue**(parameterName) : `Object`                                                                                                                                                                                                                                      |                                                                             |                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------- | ------------------- |
| <p>Gets the parameter value from a given parameter name.</p><p>If the argument is invalid, <code>undefined</code> is returned.</p><p>\*\*Source:\*\*dashboard/Dashboard.parameters.js, line 302</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getParameterValue</p> |                                                                             |                     |
| Name                                                                                                                                                                                                                                                                                 | Default Value                                                               | Summary             |
| parameterName : `String`                                                                                                                                                                                                                                                             |                                                                             | The parameter name. |
| Name                                                                                                                                                                                                                                                                                 | Description                                                                 |                     |
| `Object`                                                                                                                                                                                                                                                                             | The value of the parameter or `undefined` if the parameter name is invalid. |                     |

| Name     | Description                                                                 |
| -------- | --------------------------------------------------------------------------- |
| `Object` | The value of the parameter or `undefined` if the parameter name is invalid. |

| Name                     | Default Value | Summary             |
| ------------------------ | ------------- | ------------------- |
| parameterName : `String` |               | The parameter name. |

<table data-header-hidden><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>getQuery</strong>(type, opts) : <code>cdf.queries.BaseQuery</code></td><td></td><td></td></tr><tr><td><p>Given a type and options, returns the query object for running that particular query. If a data source name is provided as an option, it also includes all options from it.</p><p>**Source:**dashboard/Dashboard.query.js, line 203</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getQuery</p><p>|Name|Description| |----|-----------| |`cdf.queries.BaseQuery`|The query instance from the required `type` extended with the options in `opts`.|</p><p><strong>See also:</strong><code>getDataSource</code></p><p><strong>Example</strong></p><pre><code>// MDX query using an explicit type and a query definition object
dashboard.getQuery("mdx", {jndi: "SampleData", catalog: ...});
// MDX query using a query definition object
dashboard.getQuery({queryType: "mdx", jndi: "SampleData", catalog: ...});
// MDX query using a data source
dashboard.addDataSource("myDatasource", {queryType: "mdx", jndi: "SampleData", catalog: ...});
dashboard.getQuery({dataSource: "myDatasource"});
// defaults to a CDA query
dashboard.addDataSource("myDatasource", {dataAccessId: "query1", path: "/public/queries.cda"});
dashboard.getQuery({dataSource: "myDatasource"});
</code></pre></td><td></td><td></td></tr><tr><td>Name</td><td>Default Value</td><td>Summary</td></tr><tr><td>type : <code>String</code> | <code>Object</code>Optional</td><td>"cda"</td><td>A string with the query type, or a valid data source or query definition object.</td></tr><tr><td>opts : <code>Object</code>Optional</td><td> </td><td>An <code>object</code> containing the query options.</td></tr><tr><td>Name</td><td>Default Value</td><td>Summary</td></tr><tr><td>dataSource : <code>String</code>Optional</td><td> </td><td>The data source of the query.</td></tr><tr><td>queryType : <code>String</code>Optional</td><td> </td><td>The query type.</td></tr></tbody></table>

| Name                          | Default Value | Summary                       |
| ----------------------------- | ------------- | ----------------------------- |
| dataSource : `String`Optional |               | The data source of the query. |
| queryType : `String`Optional  |               | The query type.               |

| Name                                | Default Value | Summary                                                                          |
| ----------------------------------- | ------------- | -------------------------------------------------------------------------------- |
| type : `String` \| `Object`Optional | "cda"         | A string with the query type, or a valid data source or query definition object. |
| opts : `Object`Optional             |               | An `object` containing the query options.                                        |
| Name                                | Default Value | Summary                                                                          |
| dataSource : `String`Optional       |               | The data source of the query.                                                    |
| queryType : `String`Optional        |               | The query type.                                                                  |

| Name                          | Default Value | Summary                       |
| ----------------------------- | ------------- | ----------------------------- |
| dataSource : `String`Optional |               | The data source of the query. |
| queryType : `String`Optional  |               | The query type.               |

| **getRunningCalls**() : `number`                                                                                                                                                           |                                              |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------- |
| <p>Returns the number of running calls.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 127</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getRunningCalls</p> |                                              |
| Name                                                                                                                                                                                       | Description                                  |
| `number`                                                                                                                                                                                   | Number of actual running calls to the server |

| Name     | Description                                  |
| -------- | -------------------------------------------- |
| `number` | Number of actual running calls to the server |

| **getSettingsValue**(key, value)Deprecated                                                                                                                                                |               |                     |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------------- |
| <p>Gets a setting value from the server.</p><p>\*\*Source:\*\*dashboard/Dashboard.legacy.js, line 309</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getSettingsValue</p> |               |                     |
| Name                                                                                                                                                                                      | Default Value | Summary             |
| key : `string`                                                                                                                                                                            |               | Key to the setting. |
| value : `function`                                                                                                                                                                        |               | Callback function.  |

| Name               | Default Value | Summary             |
| ------------------ | ------------- | ------------------- |
| key : `string`     |               | Key to the setting. |
| value : `function` |               | Callback function.  |

| **getUnboundParameters**() : `Array.<`string`>`                                                                                                                                                                                                                       |                                                      |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| <p>Gets a list of the names of the dashboard parameters with the view flag set to <code>viewFlags.UNBOUND</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.views.js, line 194</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getUnboundParameters</p> |                                                      |
| Name                                                                                                                                                                                                                                                                  | Description                                          |
| `Array.<`string`>`                                                                                                                                                                                                                                                    | List containing the names of the unbound parameters. |

| Name               | Description                                          |
| ------------------ | ---------------------------------------------------- |
| `Array.<`string`>` | List containing the names of the unbound parameters. |

| **getViewParameters**() : `Object`                                                                                                                                                                                                                                                                                                     |                                                     |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| <p>Gets a map with the pairs parameter name - parameter value, with all dashboard parameters with the view flag set to <code>viewFlags.VIEW</code> or <code>viewFlags.UNBOUND</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.views.js, line 173</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getViewParameters</p> |                                                     |
| Name                                                                                                                                                                                                                                                                                                                                   | Description                                         |
| `Object`                                                                                                                                                                                                                                                                                                                               | Map containing the viewable and unbound parameters. |

| Name     | Description                                         |
| -------- | --------------------------------------------------- |
| `Object` | Map containing the viewable and unbound parameters. |

| **getWcdfSettings**() : `Object`Abstract                                                                                                                                                                                                                       |                                       |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------- |
| <p>Gets the dashboard's wcdfSettings. It will be overridden returning the proper wcdf settings in embedded scenarios.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 396</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getWcdfSettings</p> |                                       |
| Name                                                                                                                                                                                                                                                           | Description                           |
| `Object`                                                                                                                                                                                                                                                       | The dashboard's wcdf settings object. |

| Name     | Description                           |
| -------- | ------------------------------------- |
| `Object` | The dashboard's wcdf settings object. |

| **getWebAppPath**() : `string`                                                                                                                                          |                                            |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| <p>Gets the current webapp path.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 384</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#getWebAppPath</p> |                                            |
| Name                                                                                                                                                                    | Description                                |
| `string`                                                                                                                                                                | The current webapp path (e.g. "/pentaho"). |

| Name     | Description                                |
| -------- | ------------------------------------------ |
| `string` | The current webapp path (e.g. "/pentaho"). |

| **handleServerError**()                                                                                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Handles a server error.</p><p>\*\*Source:\*\*dashboard/Dashboard.notifications.js, line 202</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#handleServerError</p><p><strong>Fires:</strong> cdf.event:cdf , cdf.dashboard.Dashboard#event:cdf:serverError</p> |

| **hasAddIn**(type, subType, addInName) : `boolean`                                                                                                                                                                                                           |                                                 |                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------- | ----------------------------------------------------------------------------------- |
| <p>Checks if the add-in with the specified name, subtype and type exists in the add-in registry for this dashboard.</p><p>\*\*Source:\*\*dashboard/Dashboard.addIns.js, line 139</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#hasAddIn</p> |                                                 |                                                                                     |
| Name                                                                                                                                                                                                                                                         | Default Value                                   | Summary                                                                             |
| type : `string`                                                                                                                                                                                                                                              |                                                 | Type of the add-in, usually the component type where this add-in will be available. |
| subType : `string`                                                                                                                                                                                                                                           |                                                 | The subtype of the add-in.                                                          |
| addInName : `string`                                                                                                                                                                                                                                         |                                                 | The add-in name.                                                                    |
| Name                                                                                                                                                                                                                                                         | Description                                     |                                                                                     |
| `boolean`                                                                                                                                                                                                                                                    | `true` if the add-in exists, `false` otherwise. |                                                                                     |

| Name      | Description                                     |
| --------- | ----------------------------------------------- |
| `boolean` | `true` if the add-in exists, `false` otherwise. |

| Name                 | Default Value | Summary                                                                             |
| -------------------- | ------------- | ----------------------------------------------------------------------------------- |
| type : `string`      |               | Type of the add-in, usually the component type where this add-in will be available. |
| subType : `string`   |               | The subtype of the add-in.                                                          |
| addInName : `string` |               | The add-in name.                                                                    |

| **hasQuery**(type) : `boolean`                                                                                                                                                                                      |                                                                  |                 |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | --------------- |
| <p>Determines if a given query type is registered in the current dashboard.</p><p>\*\*Source:\*\*dashboard/Dashboard.query.js, line 136</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#hasQuery</p> |                                                                  |                 |
| Name                                                                                                                                                                                                                | Default Value                                                    | Summary         |
| type : `string`                                                                                                                                                                                                     |                                                                  | The query type. |
| Name                                                                                                                                                                                                                | Description                                                      |                 |
| `boolean`                                                                                                                                                                                                           | `true` if the query type has been registered for this dashboard. |                 |

| Name      | Description                                                      |
| --------- | ---------------------------------------------------------------- |
| `boolean` | `true` if the query type has been registered for this dashboard. |

| Name            | Default Value | Summary         |
| --------------- | ------------- | --------------- |
| type : `string` |               | The query type. |

| **hideProgressIndicator**(force)                                                                                                                                                                                                                                                   |               |                                                                        |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ---------------------------------------------------------------------- |
| <p>Hides the progress indicator if the dashboard is not in silent mode. Optionally, resets the running calls counter.</p><p>\*\*Source:\*\*dashboard/Dashboard.notifications.js, line 136</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#hideProgressIndicator</p> |               |                                                                        |
| Name                                                                                                                                                                                                                                                                               | Default Value | Summary                                                                |
| force : `boolean`                                                                                                                                                                                                                                                                  |               | `true` if the running calls counter should be reset, `false` otherwise |

| Name              | Default Value | Summary                                                                |
| ----------------- | ------------- | ---------------------------------------------------------------------- |
| force : `boolean` |               | `true` if the running calls counter should be reset, `false` otherwise |

| **incrementRunningCalls**()                                                                                                                                                                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Increments the running calls counter.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 135</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#incrementRunningCalls</p> |

| **init**(components)                                                                                                                                                                                                                                 |               |                                                  |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------------------------------------------ |
| <p>Dashboard's initialization function. Calling this method will trigger the dashboard execution and render.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 162</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#init</p> |               |                                                  |
| Name                                                                                                                                                                                                                                                 | Default Value | Summary                                          |
| components : `Array.<`cdf.components.BaseComponent`>`Optional                                                                                                                                                                                        |               | List of components to be added to the dashboard. |

| Name                                                          | Default Value | Summary                                          |
| ------------------------------------------------------------- | ------------- | ------------------------------------------------ |
| components : `Array.<`cdf.components.BaseComponent`>`Optional |               | List of components to be added to the dashboard. |

| **isBookmarkable**(parameter) : `boolean`                                                                                                                                                                   |                                                           |                     |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------- | ------------------- |
| <p>Checks if a <code>parameter</code> is bookmarkable.</p><p>\*\*Source:\*\*dashboard/Dashboard.bookmarkable.js, line 137</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#isBookmarkable</p> |                                                           |                     |
| Name                                                                                                                                                                                                        | Default Value                                             | Summary             |
| parameter : `string`                                                                                                                                                                                        |                                                           | The parameter name. |
| Name                                                                                                                                                                                                        | Description                                               |                     |
| `boolean`                                                                                                                                                                                                   | `true` if `parameter` is bookmarkable, `false` otherwise. |                     |

| Name      | Description                                               |
| --------- | --------------------------------------------------------- |
| `boolean` | `true` if `parameter` is bookmarkable, `false` otherwise. |

| Name                 | Default Value | Summary             |
| -------------------- | ------------- | ------------------- |
| parameter : `string` |               | The parameter name. |

| **isComponentUpdating**(the)                                                                                                                                                                                                                                                                                                                                                                                |               |                                         |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | --------------------------------------- |
| <p>When a component is upodated in the dashboard it goes through a series of states, and tracking all those states can be difficult. This function eases that by checking in all the appropriate lifecycle states if the component is being updated.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 835</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#isComponentUpdating</p> |               |                                         |
| Name                                                                                                                                                                                                                                                                                                                                                                                                        | Default Value | Summary                                 |
| the : `cdf.components.BaseComponent`                                                                                                                                                                                                                                                                                                                                                                        |               | component to check if is being updated. |

| Name                                 | Default Value | Summary                                 |
| ------------------------------------ | ------------- | --------------------------------------- |
| the : `cdf.components.BaseComponent` |               | component to check if is being updated. |

| **isValidQueryDefinition**(queryDefinition) : `boolean`                                                                                                                                                                                                                                                                                                             |                                          |                              |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- | ---------------------------- |
| <p>Tests if a query definition is valid or not. It checks if the return value of the <code>detectQueryType</code> is not <code>undefined</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.query.js, line 242</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#isValidQueryDefinition</p><p><strong>See also:</strong><code>detectQueryType</code></p> |                                          |                              |
| Name                                                                                                                                                                                                                                                                                                                                                                | Default Value                            | Summary                      |
| queryDefinition : `Object`                                                                                                                                                                                                                                                                                                                                          |                                          | The query definition object. |
| Name                                                                                                                                                                                                                                                                                                                                                                | Description                              |                              |
| `boolean`                                                                                                                                                                                                                                                                                                                                                           | `true` if the query definition is valid. |                              |

| Name      | Description                              |
| --------- | ---------------------------------------- |
| `boolean` | `true` if the query definition is valid. |

| Name                       | Default Value | Summary                      |
| -------------------------- | ------------- | ---------------------------- |
| queryDefinition : `Object` |               | The query definition object. |

| **isViewParameter**(parameter) : `string`                                                                                                                                                           |                                |                            |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ | -------------------------- |
| <p>Returns the view flag value of a given parameter.</p><p>\*\*Source:\*\*dashboard/Dashboard.views.js, line 158</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#isViewParameter</p> |                                |                            |
| Name                                                                                                                                                                                                | Default Value                  | Summary                    |
| parameter : `string`                                                                                                                                                                                |                                | The name of the parameter. |
| Name                                                                                                                                                                                                | Description                    |                            |
| `string`                                                                                                                                                                                            | The parameter view flag value. |                            |

| Name     | Description                    |
| -------- | ------------------------------ |
| `string` | The parameter view flag value. |

| Name                 | Default Value | Summary                    |
| -------------------- | ------------- | -------------------------- |
| parameter : `string` |               | The name of the parameter. |

| **listAddIns**(type, subType) : `Array.<`cdf.AddIn`>`                                                                                                                                               |                                                                  |                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| <p>Lists registered add-ins of a given type and subtype.</p><p>\*\*Source:\*\*dashboard/Dashboard.addIns.js, line 194</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#listAddIns</p> |                                                                  |                                                                                     |
| Name                                                                                                                                                                                                | Default Value                                                    | Summary                                                                             |
| type : `string`                                                                                                                                                                                     |                                                                  | Type of the add-in, usually the component type where this add-in will be available. |
| subType : `string`                                                                                                                                                                                  |                                                                  | The subtype of the add-in.                                                          |
| Name                                                                                                                                                                                                | Description                                                      |                                                                                     |
| `Array.<`cdf.AddIn`>`                                                                                                                                                                               | An `array` containing the add-ins of the given type and subtype. |                                                                                     |

| Name                  | Description                                                      |
| --------------------- | ---------------------------------------------------------------- |
| `Array.<`cdf.AddIn`>` | An `array` containing the add-ins of the given type and subtype. |

| Name               | Default Value | Summary                                                                             |
| ------------------ | ------------- | ----------------------------------------------------------------------------------- |
| type : `string`    |               | Type of the add-in, usually the component type where this add-in will be available. |
| subType : `string` |               | The subtype of the add-in.                                                          |

| **listQueries**() : `Array.<`String`>`                                                                                                                                                            |                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| <p>Lists the registered query types in this dashboard.</p><p>\*\*Source:\*\*dashboard/Dashboard.query.js, line 252</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#listQueries</p> |                                                   |
| Name                                                                                                                                                                                              | Description                                       |
| `Array.<`String`>`                                                                                                                                                                                | An `array` containing the registered query types. |

| Name               | Description                                       |
| ------------------ | ------------------------------------------------- |
| `Array.<`String`>` | An `array` containing the registered query types. |

| **loadStorage**()                                                                                                                                                                                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>Retrieves the <code>storage</code> value from the server using a jQuery.ajax request and saves it in the dashboard <code>storage</code> property.</p><p>\*\*Source:\*\*dashboard/Dashboard.storage.js, line 94</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#loadStorage</p> |

| **loginAlert**(newOpts)                                                                                                                                                                                                                                                                                                                                                                                                      |               |                               |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ----------------------------- |
| <p>Shows a login error notification if the dashboard is not in silent mode. Provides a default implementation for the login alert which pops up when the login session expires.</p><p>\*\*Source:\*\*dashboard/Dashboard.notifications.js, line 238</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#loginAlert</p><p><strong>Fires:</strong> cdf.event:cdf , cdf.dashboard.Dashboard#event:cdf:loginError</p> |               |                               |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                         | Default Value | Summary                       |
| newOpts : `Object`                                                                                                                                                                                                                                                                                                                                                                                                           |               | Options for the login pop-up. |

| Name               | Default Value | Summary                       |
| ------------------ | ------------- | ----------------------------- |
| newOpts : `Object` |               | Options for the login pop-up. |

| **normalizeId**(id) : `string`Abstract                                                                                                                                                                                                                                                                                                       |                            |                                          |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------- | ---------------------------------------- |
| <p>Normalizes a DOM element identifier. This method is meant to be used when we need to directly manipulate a DOM element. It will be overridden returning the proper identifier in embedded scenarios.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 411</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#normalizeId</p> |                            |                                          |
| Name                                                                                                                                                                                                                                                                                                                                         | Default Value              | Summary                                  |
| id : `string`                                                                                                                                                                                                                                                                                                                                |                            | The DOM element identifier to normalize. |
| Name                                                                                                                                                                                                                                                                                                                                         | Description                |                                          |
| `string`                                                                                                                                                                                                                                                                                                                                     | The normalized identifier. |                                          |

| Name     | Description                |
| -------- | -------------------------- |
| `string` | The normalized identifier. |

| Name          | Default Value | Summary                                  |
| ------------- | ------------- | ---------------------------------------- |
| id : `string` |               | The DOM element identifier to normalize. |

| **parseXActionResult**(obj, html) : `Object`Deprecated                                                                                                                                                                                                                                                |                                                                                                      |                                            |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| <p>Parses the xaction result. If errors are detected they will be writen in the appropriate DOM object of the provided <code>obj</code> component.</p><p>\*\*Source:\*\*dashboard/Dashboard.legacy.js, line 246</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#parseXActionResult</p> |                                                                                                      |                                            |
| Name                                                                                                                                                                                                                                                                                                  | Default Value                                                                                        | Summary                                    |
| obj : `cdf.components.BaseComponent`                                                                                                                                                                                                                                                                  |                                                                                                      | The target component.                      |
| html : `string`                                                                                                                                                                                                                                                                                       |                                                                                                      | HTML string containing the xaction result. |
| Name                                                                                                                                                                                                                                                                                                  | Description                                                                                          |                                            |
| `Object` \| `null`                                                                                                                                                                                                                                                                                    | A DOM object containing the xaction result if no errors are detected. Otherwise, `null` is returned. |                                            |

| Name               | Description                                                                                          |
| ------------------ | ---------------------------------------------------------------------------------------------------- |
| `Object` \| `null` | A DOM object containing the xaction result if no errors are detected. Otherwise, `null` is returned. |

| Name                                 | Default Value | Summary                                    |
| ------------------------------------ | ------------- | ------------------------------------------ |
| obj : `cdf.components.BaseComponent` |               | The target component.                      |
| html : `string`                      |               | HTML string containing the xaction result. |

| **pentahoAction**(solution, path, action, params, func) : `Object` \| `string`Deprecated                                                                                                                                                           |                                                       |                                                                                                   |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
| <p>Another way to call an xaction.</p><p>\*\*Source:\*\*dashboard/Dashboard.legacy.js, line 158</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#pentahoAction</p><p><strong>See also:</strong><code>pentahoServiceAction</code></p> |                                                       |                                                                                                   |
| Name                                                                                                                                                                                                                                               | Default Value                                         | Summary                                                                                           |
| solution : `string`                                                                                                                                                                                                                                |                                                       | Solution folder.                                                                                  |
| path : `string`                                                                                                                                                                                                                                    |                                                       | Path to the xaction. Can be the full path, in which case you do not need the solution and action. |
| action : `string`                                                                                                                                                                                                                                  |                                                       | The xaction name.                                                                                 |
| params : `Object`                                                                                                                                                                                                                                  |                                                       | Parameter object to send to the xaction.                                                          |
| func : `function`                                                                                                                                                                                                                                  |                                                       | Callback function to call when the xaction responds.                                              |
| Name                                                                                                                                                                                                                                               | Description                                           |                                                                                                   |
| `Object` \| `string`                                                                                                                                                                                                                               | The return value of executing `pentahoServiceAction`. |                                                                                                   |

| Name                 | Description                                           |
| -------------------- | ----------------------------------------------------- |
| `Object` \| `string` | The return value of executing `pentahoServiceAction`. |

| Name                | Default Value | Summary                                                                                           |
| ------------------- | ------------- | ------------------------------------------------------------------------------------------------- |
| solution : `string` |               | Solution folder.                                                                                  |
| path : `string`     |               | Path to the xaction. Can be the full path, in which case you do not need the solution and action. |
| action : `string`   |               | The xaction name.                                                                                 |
| params : `Object`   |               | Parameter object to send to the xaction.                                                          |
| func : `function`   |               | Callback function to call when the xaction responds.                                              |

| **pentahoServiceAction**(serviceMethod, returntype, solution, path, action, params, func) : `Object` \| `string`Deprecated                                                                                                         |                                              |                                                                                                  |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| <p>Calls an xaction.</p><p>\*\*Source:\*\*dashboard/Dashboard.legacy.js, line 177</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#pentahoServiceAction</p><p><strong>See also:</strong><code>executeAjax</code></p> |                                              |                                                                                                  |
| Name                                                                                                                                                                                                                               | Default Value                                | Summary                                                                                          |
| serviceMethod : `string`                                                                                                                                                                                                           |                                              | Dom object where the response from the xaction should be written.                                |
| returntype : `string`                                                                                                                                                                                                              |                                              | Expected return type of the response.                                                            |
| solution : `string`                                                                                                                                                                                                                |                                              | Solution folder.                                                                                 |
| path : `string`                                                                                                                                                                                                                    |                                              | Path to the xaction. Can be the full path, in which case you do not need the solution and action |
| action : `string`                                                                                                                                                                                                                  |                                              | The xaction name.                                                                                |
| params : `Object`                                                                                                                                                                                                                  |                                              | Parameter object to send to the xaction.                                                         |
| func : `function`                                                                                                                                                                                                                  |                                              | Callback function to call when the xaction responds.                                             |
| Name                                                                                                                                                                                                                               | Description                                  |                                                                                                  |
| `Object` \| `string`                                                                                                                                                                                                               | The return value of executing `executeAjax`. |                                                                                                  |

| Name                 | Description                                  |
| -------------------- | -------------------------------------------- |
| `Object` \| `string` | The return value of executing `executeAjax`. |

| Name                     | Default Value | Summary                                                                                          |
| ------------------------ | ------------- | ------------------------------------------------------------------------------------------------ |
| serviceMethod : `string` |               | Dom object where the response from the xaction should be written.                                |
| returntype : `string`    |               | Expected return type of the response.                                                            |
| solution : `string`      |               | Solution folder.                                                                                 |
| path : `string`          |               | Path to the xaction. Can be the full path, in which case you do not need the solution and action |
| action : `string`        |               | The xaction name.                                                                                |
| params : `Object`        |               | Parameter object to send to the xaction.                                                         |
| func : `function`        |               | Callback function to call when the xaction responds.                                             |

| **persistBookmarkables**(param)                                                                                                                                                                                                                                                                                                                                             |               |                            |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | -------------------------- |
| <p>If <code>param</code> is a bookmarkable parameter, this method uses <code>generateBookmarkState</code> to generate a bookmark state with the values stored and <code>setBookmarkState</code> to persist them.</p><p>\*\*Source:\*\*dashboard/Dashboard.bookmarkable.js, line 167</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#persistBookmarkables</p> |               |                            |
| Name                                                                                                                                                                                                                                                                                                                                                                        | Default Value | Summary                    |
| param : `string`                                                                                                                                                                                                                                                                                                                                                            |               | The name of the parameter. |

| Name             | Default Value | Summary                    |
| ---------------- | ------------- | -------------------------- |
| param : `string` |               | The name of the parameter. |

| **processChange**(object\_name)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |               |                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------- | ------------------- |
| <p>Given the component with name <code>object\_name</code>, a change is processed as follows:</p><p>We get the <code>parameter</code> and the <code>value</code> from the component (<code>getValue()</code>). Then we do the actual processing:</p><ol><li>component.<code>preChange(value)</code></li><li>dashboard.<code>fireChange(</code>parameter<code>,</code>value<code>)</code></li><li>component.<code>postChange(value)</code></li></ol><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 727</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#processChange</p> |               |                     |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Default Value | Summary             |
| object\_name : `string`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |               | The component name. |

| Name                    | Default Value | Summary             |
| ----------------------- | ------------- | ------------------- |
| object\_name : `string` |               | The component name. |

| **registerAddIn**(type, subType, addIn)                                                                                                                                                                          |               |                                                                                     |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ----------------------------------------------------------------------------------- |
| <p>Registers an add-in to be used only by this dashboard instance.</p><p>\*\*Source:\*\*dashboard/Dashboard.addIns.js, line 122</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#registerAddIn</p> |               |                                                                                     |
| Name                                                                                                                                                                                                             | Default Value | Summary                                                                             |
| type : `string`                                                                                                                                                                                                  |               | Type of the add-in, usually the component type where this add-in will be available. |
| subType : `string`                                                                                                                                                                                               |               | The subtype of the add-in.                                                          |
| addIn : `cdf.AddIn`                                                                                                                                                                                              |               | The add-in instance to register.                                                    |

| Name                | Default Value | Summary                                                                             |
| ------------------- | ------------- | ----------------------------------------------------------------------------------- |
| type : `string`     |               | Type of the add-in, usually the component type where this add-in will be available. |
| subType : `string`  |               | The subtype of the add-in.                                                          |
| addIn : `cdf.AddIn` |               | The add-in instance to register.                                                    |

| **registerGlobalAddIn**(type, subType, addIn)                                                                                                                                                                                                                                                                     |               |                                                                                         |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | --------------------------------------------------------------------------------------- |
| <p>Registers a global add-in, to be used in all instances of dashboards sharing the same context. Essentially, it calls the static method with the same name.</p><p>\*\*Source:\*\*dashboard/Dashboard.addIns.js, line 109</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#registerGlobalAddIn</p> |               |                                                                                         |
| Name                                                                                                                                                                                                                                                                                                              | Default Value | Summary                                                                                 |
| type : `string`                                                                                                                                                                                                                                                                                                   |               | The type of the add-in, usually the component type where this add-in will be available. |
| subType : `string`                                                                                                                                                                                                                                                                                                |               | The subtype of the add-in.                                                              |
| addIn : `cdf.AddIn`                                                                                                                                                                                                                                                                                               |               | The add-in instance to register.                                                        |

| Name                | Default Value | Summary                                                                                 |
| ------------------- | ------------- | --------------------------------------------------------------------------------------- |
| type : `string`     |               | The type of the add-in, usually the component type where this add-in will be available. |
| subType : `string`  |               | The subtype of the add-in.                                                              |
| addIn : `cdf.AddIn` |               | The add-in instance to register.                                                        |

| **registerQuery**(type, query)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |               |                                                                                                                          |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------ |
| <p>Registers a new query type constructor to be used by the dashboard instance.</p><p>If the <code>query</code> argument is an <code>object</code>, a new <code>object</code> will be created with a copy of the properties listed in the <code>deepProperties</code> list of the <code>BaseQuery</code>.</p><p>If <code>query</code> is a <code>function</code>, it will be used to generate new query instances of the specified <code>type</code> with no dependency on the <code>BaseQuery</code> class.</p><p>The new query type will be registered at the dashboard instance level and will not be accessible to other dashboards. To register the query type globally see the <code>registerGlobalQuery</code> function.</p><p>\*\*Source:\*\*dashboard/Dashboard.query.js, line 108</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#registerQuery</p> |               |                                                                                                                          |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Default Value | Summary                                                                                                                  |
| type : `string`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |               | The type of the query constructor.                                                                                       |
| query : `object` \| `function`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |               | A set of properties specific of the query type being registered, or the constructor for the query type being registered. |

| Name                           | Default Value | Summary                                                                                                                  |
| ------------------------------ | ------------- | ------------------------------------------------------------------------------------------------------------------------ |
| type : `string`                |               | The type of the query constructor.                                                                                       |
| query : `object` \| `function` |               | A set of properties specific of the query type being registered, or the constructor for the query type being registered. |

| **removeComponent**(compOrNameOrIndex) : `cdf.components.BaseComponent` \| `undefined`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |                              |                                                                                               |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | --------------------------------------------------------------------------------------------- |
| <p>Removes a component from the <code>components</code> array, calling <code>getComponentIndex</code> to retrieve the correct component. Additionally, all the cdf events are removed, returning the component instance removed.</p><p>If argument is a <code>BaseComponent</code> instance that exists in the <code>components</code> array, it will be removed. If <code>compOrNameOrIndex</code> is a string, the first component with such name is removed from the <code>components</code> array. The other case is if <code>compOrNameOrIndex</code> is a number. In this scenario, the component in such a position in the <code>components</code> array is removed.</p><p>\*\*Source:\*\*dashboard/Dashboard.components.js, line 218</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#removeComponent</p><p><strong>See also:</strong><code>getComponentIndex</code></p> |                              |                                                                                               |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Default Value                | Summary                                                                                       |
| compOrNameOrIndex : `cdf.components.BaseComponent` \| `string` \| `number`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                              | The component object, the name of the component, or the index of the component to be removed. |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Description                  |                                                                                               |
| `cdf.components.BaseComponent`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | The removed component.       |                                                                                               |
| `undefined`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | The component was not found. |                                                                                               |

| Name                           | Description                  |
| ------------------------------ | ---------------------------- |
| `cdf.components.BaseComponent` | The removed component.       |
| `undefined`                    | The component was not found. |

| Name                                                                       | Default Value | Summary                                                                                       |
| -------------------------------------------------------------------------- | ------------- | --------------------------------------------------------------------------------------------- |
| compOrNameOrIndex : `cdf.components.BaseComponent` \| `string` \| `number` |               | The component object, the name of the component, or the index of the component to be removed. |

| **removeDataSource**(obj)                                                                                                                                                                                                                                                                                                                                 |               |                                                                          |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------------------------------------------------------------------ |
| <p>Removes the data source with the provided name. If <code>obj</code> is a query definition <code>object</code>, the data source name will be extracted from its <code>dataSource</code> property.</p><p>\*\*Source:\*\*dashboard/Dashboard.dataSources.js, line 193</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#removeDataSource</p> |               |                                                                          |
| Name                                                                                                                                                                                                                                                                                                                                                      | Default Value | Summary                                                                  |
| obj : `string` \| `Object`                                                                                                                                                                                                                                                                                                                                |               | The name of the data source or an object from which to extract the name. |

| Name                       | Default Value | Summary                                                                  |
| -------------------------- | ------------- | ------------------------------------------------------------------------ |
| obj : `string` \| `Object` |               | The name of the data source or an object from which to extract the name. |

| **resetAll**()                                                                                                                                                                                                          |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Resets the dashboard, clearing all the components, and re-updating them.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 702</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#resetAll</p> |

| **resetRunningCalls**()                                                                                                                                                                                                    |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Resets the running calls counter and hides the progress indicator.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 114</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#resetRunningCalls</p> |

| **restoreBookmarkables**()                                                                                                                                                                                                                                                                                                    |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>This method uses <code>getBookmarkState</code> to read the bookmark state and then <code>setParameter</code> to set each parameter/value read in the dashboard.</p><p>\*\*Source:\*\*dashboard/Dashboard.bookmarkable.js, line 250</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#restoreBookmarkables</p> |

| **restoreView**()                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Restores the dashboard parameters stored in a <code>view</code>. Because we are storing the parameters in OrientDB, and it has some serious issues when storing nested objects, we need to marshal the parameters into a JSON object and convert that JSON into a Base64 blob before the storage operation. So, to restore the view parameters we need to revert this process.</p><p>\*\*Source:\*\*dashboard/Dashboard.views.js, line 115</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#restoreView</p><p>\*\*See also:\*\*OrientDB , Base64</p> |

| **saveStorage**()                                                                                                                                                                                                               |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Saves the <code>storage</code> value in the server using a jQuery.ajax request.</p><p>\*\*Source:\*\*dashboard/Dashboard.storage.js, line 127</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#saveStorage</p> |

| **setAddInDefaults**(type, subType, addInName, defaults)                                                                                                                                   |               |                                                                                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| <p>Sets the default options of an add-in.</p><p>\*\*Source:\*\*dashboard/Dashboard.addIns.js, line 177</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#setAddInDefaults</p> |               |                                                                                                                                     |
| Name                                                                                                                                                                                       | Default Value | Summary                                                                                                                             |
| type : `string`                                                                                                                                                                            |               | Type of the add-in, usually the component type where this add-in will be available.                                                 |
| subType : `string`                                                                                                                                                                         |               | The subtype of the add-in.                                                                                                          |
| addInName : `string`                                                                                                                                                                       |               | The add-in name.                                                                                                                    |
| defaults : `Object`                                                                                                                                                                        |               | The default options. This is a JSON object specifying the default options. The options are dependent on which add-in is being used. |

| Name                 | Default Value | Summary                                                                                                                             |
| -------------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| type : `string`      |               | Type of the add-in, usually the component type where this add-in will be available.                                                 |
| subType : `string`   |               | The subtype of the add-in.                                                                                                          |
| addInName : `string` |               | The add-in name.                                                                                                                    |
| defaults : `Object`  |               | The default options. This is a JSON object specifying the default options. The options are dependent on which add-in is being used. |

| **setBookmarkable**(parameter, value)                                                                                                                                                                                                                                             |               |                                         |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | --------------------------------------- |
| <p>It sets <code>parameter</code> as bookmarkable, with value equal to <code>true</code> or <code>value</code> if provided.</p><p>\*\*Source:\*\*dashboard/Dashboard.bookmarkable.js, line 122</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#setBookmarkable</p> |               |                                         |
| Name                                                                                                                                                                                                                                                                              | Default Value | Summary                                 |
| parameter : `string`                                                                                                                                                                                                                                                              |               | The name of the parameter to be stored. |
| value : `Object`Optional                                                                                                                                                                                                                                                          |               | The value for the parameter.            |

| Name                     | Default Value | Summary                                 |
| ------------------------ | ------------- | --------------------------------------- |
| parameter : `string`     |               | The name of the parameter to be stored. |
| value : `Object`Optional |               | The value for the parameter.            |

| **setBookmarkState**(state)                                                                                                                                                                                           |               |                                               |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | --------------------------------------------- |
| <p>Overrides a bookmark state with a given <code>state</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.bookmarkable.js, line 190</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#setBookmarkState</p> |               |                                               |
| Name                                                                                                                                                                                                                  | Default Value | Summary                                       |
| state : `Object`                                                                                                                                                                                                      |               | The new state to override the existing state. |

| Name             | Default Value | Summary                                       |
| ---------------- | ------------- | --------------------------------------------- |
| state : `Object` |               | The new state to override the existing state. |

| **setDataSource**(name, obj)                                                                                                                                                                                                                                   |               |                              |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ---------------------------- |
| <p>Adds a data source. If a data source already exists with the same name, it is replaced with the new one.</p><p>\*\*Source:\*\*dashboard/Dashboard.dataSources.js, line 175</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#setDataSource</p> |               |                              |
| Name                                                                                                                                                                                                                                                           | Default Value | Summary                      |
| name : `string` \| `Object`                                                                                                                                                                                                                                    |               | The name of the data source. |
| obj : `Object` \| `undefined`                                                                                                                                                                                                                                  |               | The data source to be added. |

| Name                          | Default Value | Summary                      |
| ----------------------------- | ------------- | ---------------------------- |
| name : `string` \| `Object`   |               | The name of the data source. |
| obj : `Object` \| `undefined` |               | The data source to be added. |

| **setGlobalContext**(globalContext)Deprecated                                                                                                                                           |               |                                                       |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ----------------------------------------------------- |
| <p>Sets the <code>globalContext</code> value.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 374</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#setGlobalContext</p> |               |                                                       |
| Name                                                                                                                                                                                    | Default Value | Summary                                               |
| globalContext : `boolean`                                                                                                                                                               |               | Flag indicating if global context is to be activated. |

| Name                      | Default Value | Summary                                               |
| ------------------------- | ------------- | ----------------------------------------------------- |
| globalContext : `boolean` |               | Flag indicating if global context is to be activated. |

| **setI18nSupport**(locale, i18nRef)                                                                                                                                                       |               |                         |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ----------------------- |
| <p>Sets the current locale and i18n options.</p><p>\*\*Source:\*\*dashboard/Dashboard.i18n.js, line 128</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#setI18nSupport</p> |               |                         |
| Name                                                                                                                                                                                      | Default Value | Summary                 |
| locale : `string`                                                                                                                                                                         |               | Locale code.            |
| i18nRef : `Object`                                                                                                                                                                        |               | Additional i18 options. |

| Name               | Default Value | Summary                 |
| ------------------ | ------------- | ----------------------- |
| locale : `string`  |               | Locale code.            |
| i18nRef : `Object` |               | Additional i18 options. |

| **setParam**(parameterName, parameterValue, isNotified) : `undefined`                                                                                                                |                                 |                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------- | -------------------------------------------------------------------------------------------------------------- |
| <p>Alias for <code>setParameter</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.parameters.js, line 369</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#setParam</p> |                                 |                                                                                                                |
| Name                                                                                                                                                                                 | Default Value                   | Summary                                                                                                        |
| parameterName : `String`                                                                                                                                                             |                                 | The parameter name.                                                                                            |
| parameterValue : `Object`                                                                                                                                                            |                                 | The value of the parameter.                                                                                    |
| isNotified : `Boolean`                                                                                                                                                               |                                 | A flag indicating if a `*parameterName*:fireChange` event is to be triggered when the parameter value changes. |
| Name                                                                                                                                                                                 | Description                     |                                                                                                                |
| `undefined`                                                                                                                                                                          | If parameter name is not valid. |                                                                                                                |

| Name        | Description                     |
| ----------- | ------------------------------- |
| `undefined` | If parameter name is not valid. |

| Name                      | Default Value | Summary                                                                                                        |
| ------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------- |
| parameterName : `String`  |               | The parameter name.                                                                                            |
| parameterValue : `Object` |               | The value of the parameter.                                                                                    |
| isNotified : `Boolean`    |               | A flag indicating if a `*parameterName*:fireChange` event is to be triggered when the parameter value changes. |

| **setParameter**(parameterName, parameterValue, isNotified)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |               |                                                                                                                |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------- | -------------------------------------------------------------------------------------------------------------- |
| <p>Stores a parameter value with a certain parameter name. If the parameter name is not valid, <code>undefined</code> is returned immediately.</p><p>Since parameters are stored using the Backbone event model, an extra parameter - <code>isNotified</code> - can be used to control the Backbone event listeners.</p><p>If <code>escapeParameterValues</code> is <code>true</code>, then <code>encode\_prepare\_arr</code> is called before the parameter value is stored.</p><p>\*\*Source:\*\*dashboard/Dashboard.parameters.js, line 339</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#setParameter</p> |               |                                                                                                                |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Default Value | Summary                                                                                                        |
| parameterName : `String`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |               | The parameter name.                                                                                            |
| parameterValue : `Object`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |               | The value of the parameter.                                                                                    |
| isNotified : `Boolean`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |               | A flag indicating if a `*parameterName*:fireChange` event is to be triggered when the parameter value changes. |

| Name                      | Default Value | Summary                                                                                                        |
| ------------------------- | ------------- | -------------------------------------------------------------------------------------------------------------- |
| parameterName : `String`  |               | The parameter name.                                                                                            |
| parameterValue : `Object` |               | The value of the parameter.                                                                                    |
| isNotified : `Boolean`    |               | A flag indicating if a `*parameterName*:fireChange` event is to be triggered when the parameter value changes. |

| **setParameterViewMode**(parameter, value)                                                                                                                                                                                                                       |               |                                                                                                     |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | --------------------------------------------------------------------------------------------------- |
| <p>Sets the view flag for a given parameter. If none is provided it defaults to <code>viewFlags.VIEW</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.views.js, line 143</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#setParameterViewMode</p> |               |                                                                                                     |
| Name                                                                                                                                                                                                                                                             | Default Value | Summary                                                                                             |
| parameter : `string`                                                                                                                                                                                                                                             |               | The name of the parameter.                                                                          |
| value : `string`                                                                                                                                                                                                                                                 | "view"        | The value of the view flag for the parameter. If none is provided, it defaults to `viewFlags.VIEW`. |

| Name                 | Default Value | Summary                                                                                             |
| -------------------- | ------------- | --------------------------------------------------------------------------------------------------- |
| parameter : `string` |               | The name of the parameter.                                                                          |
| value : `string`     | "view"        | The value of the view flag for the parameter. If none is provided, it defaults to `viewFlags.VIEW`. |

| **setSettingsValue**(name, object)Deprecated                                                                                                                                      |               |                        |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ---------------------- |
| <p>Sets a setting in the server.</p><p>\*\*Source:\*\*dashboard/Dashboard.legacy.js, line 290</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#setSettingsValue</p> |               |                        |
| Name                                                                                                                                                                              | Default Value | Summary                |
| name : `string`                                                                                                                                                                   |               | Name of the setting.   |
| object : `Object`                                                                                                                                                                 |               | Value for the setting. |

| Name              | Default Value | Summary                |
| ----------------- | ------------- | ---------------------- |
| name : `string`   |               | Name of the setting.   |
| object : `Object` |               | Value for the setting. |

| **showErrorTooltip**()Deprecated                                                                                                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Creates an empty HTML div element for showing error messages.</p><p>\*\*Source:\*\*dashboard/Dashboard.legacy.js, line 221</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#showErrorTooltip</p> |

| **showProgressIndicator**()                                                                                                                                                                                                                                                                                     |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Makes the progress indicator visible if the dashboard is not in silent mode. By default this is a draggable blocking div which shows a spinner.</p><p>\*\*Source:\*\*dashboard/Dashboard.notifications.js, line 122</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#showProgressIndicator</p> |

| **syncDebugLevel**() : `number`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                                                                                                                                                                                                                                  |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Sets the <code>debug</code> level. If the URL parameter <code>debug</code> has value of <code>true</code> and the value of the URL parameter <code>debugLevel</code> is a valid numeric value, it will set the debug level according to the latter. If an error occurs while reading the URL parameters, or <code>debug</code> is not set to <code>true</code>, the debug level is set to <code>1</code>.</p><p>\*\*Source:\*\*dashboard/Dashboard.js, line 352</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#syncDebugLevel</p> |                                                                                                                                                                                                                                  |
| Name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Description                                                                                                                                                                                                                      |
| `number`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | The new `debug` level value according to the `debugLevel` URL parameter. It is `1` if an error occurs while parsing the URL, if the `debugLevel` has an invalid numeric value, or if the `debug` parameter is not set to `true`. |

| Name     | Description                                                                                                                                                                                                                      |
| -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `number` | The new `debug` level value according to the `debugLevel` URL parameter. It is `1` if an error occurs while parsing the URL, if the `debugLevel` has an invalid numeric value, or if the `debug` parameter is not set to `true`. |

| **update**(component)                                                                                                                                                                                                                                                                                                                                           |               |                          |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------------------ |
| <p>Adds a component to the "to be updated" queue and starts a timer. If the timer finishes before this method is called again, the <code>updateAll</code> method is called, updating all the components in the queue.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 615</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#update</p> |               |                          |
| Name                                                                                                                                                                                                                                                                                                                                                            | Default Value | Summary                  |
| component : `cdf.components.BaseComponent`                                                                                                                                                                                                                                                                                                                      |               | The component to update. |

| Name                                       | Default Value | Summary                  |
| ------------------------------------------ | ------------- | ------------------------ |
| component : `cdf.components.BaseComponent` |               | The component to update. |

| **updateComponent**(object)                                                                                                                                                         |               |                          |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | ------------------------ |
| <p>Updates a specific component.</p><p>\*\*Source:\*\*dashboard/Dashboard.lifecycle.js, line 647</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#updateComponent</p> |               |                          |
| Name                                                                                                                                                                                | Default Value | Summary                  |
| object : `cdf.components.BaseComponent`                                                                                                                                             |               | The component to update. |

| Name                                    | Default Value | Summary                  |
| --------------------------------------- | ------------- | ------------------------ |
| object : `cdf.components.BaseComponent` |               | The component to update. |

| **urlAction**(url, params, func) : `Object` \| `string`Deprecated                                                                                                                                                                                                        |                                              |                       |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------- | --------------------- |
| <p>Calls an arbitrary URL expecting the result content type to be xml.</p><p>\*\*Source:\*\*dashboard/Dashboard.legacy.js, line 82</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#urlAction</p><p><strong>See also:</strong><code>executeAjax</code></p> |                                              |                       |
| Name                                                                                                                                                                                                                                                                     | Default Value                                | Summary               |
| url : `string`                                                                                                                                                                                                                                                           |                                              | The URL to call.      |
| params : `Object`                                                                                                                                                                                                                                                        |                                              | The parameter object. |
| func : `function`                                                                                                                                                                                                                                                        |                                              | Callback function.    |
| Name                                                                                                                                                                                                                                                                     | Description                                  |                       |
| `Object` \| `string`                                                                                                                                                                                                                                                     | The return value of executing `executeAjax`. |                       |

| Name                 | Description                                  |
| -------------------- | -------------------------------------------- |
| `Object` \| `string` | The return value of executing `executeAjax`. |

| Name              | Default Value | Summary               |
| ----------------- | ------------- | --------------------- |
| url : `string`    |               | The URL to call.      |
| params : `Object` |               | The parameter object. |
| func : `function` |               | Callback function.    |

\## Events Details

| **cdf:loginError**                                                                                                                                                                      |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Event triggered when login fails.</p><p>\*\*Source:\*\*dashboard/\_doc/events.jsdoc, line 48</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#event:cdf:loginError</p> |

| **cdf:postInit**                                                                                                                                                                                               |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Event triggered after the dashboard finishes initializing.</p><p>\*\*Source:\*\*dashboard/\_doc/events.jsdoc, line 27</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#event:cdf:postInit</p> |

| **cdf:preInit**                                                                                                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>Event triggered before the dashboard starts initializing.</p><p>\*\*Source:\*\*dashboard/\_doc/events.jsdoc, line 19</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#event:cdf:preInit</p> |

| **cdf:serverError**                                                                                                                                                                                |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Event triggered when a server error occurs.</p><p>\*\*Source:\*\*dashboard/\_doc/events.jsdoc, line 56</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#event:cdf:serverError</p> |

| ***parameterName*****:fireChange**(obj)                                                                                                                                                                                                                                                                                              |               |                                                            |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------- | ---------------------------------------------------------- |
| <p>Event triggered when the dashboard parameter value changes. The name of the event is formed using the name of the parameter and the suffix <code>:fireChange</code>.</p><p>\*\*Source:\*\*dashboard/\_doc/events.jsdoc, line 35</p><p><strong>Inherited From:</strong> cdf.dashboard.Dashboard#event:parameterName:fireChange</p> |               |                                                            |
| Name                                                                                                                                                                                                                                                                                                                                 | Default Value | Summary                                                    |
| obj : `object`                                                                                                                                                                                                                                                                                                                       |               | An object containing the parameter name and the new value. |
| Name                                                                                                                                                                                                                                                                                                                                 | Default Value | Summary                                                    |
| parameter : `string`                                                                                                                                                                                                                                                                                                                 |               | The name of the parameter.                                 |
| value : `object`                                                                                                                                                                                                                                                                                                                     |               | The new parameter value.                                   |

| Name                 | Default Value | Summary                    |
| -------------------- | ------------- | -------------------------- |
| parameter : `string` |               | The name of the parameter. |
| value : `object`     |               | The new parameter value.   |

| Name                 | Default Value | Summary                                                    |
| -------------------- | ------------- | ---------------------------------------------------------- |
| obj : `object`       |               | An object containing the parameter name and the new value. |
| Name                 | Default Value | Summary                                                    |
| parameter : `string` |               | The name of the parameter.                                 |
| value : `object`     |               | The new parameter value.                                   |

| Name                 | Default Value | Summary                    |
| -------------------- | ------------- | -------------------------- |
| parameter : `string` |               | The name of the parameter. |
| value : `object`     |               | The new parameter value.   |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pentaho.com/pba-ctools/pentaho-cdf-api/cdf/dashboard.bootstrap.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
