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
require(["cdf/Dashboard.Bootstrap"], function(Dashboard) { /* code goes here */ });
See also: Dashboard
, Bootstrap
Extends
Constructor
Name | Description |
---|---|
new Dashboard() | Represents a Bootstrap dashboard. |
Members
Name | Description |
---|---|
addIns : Protected | Serves as a container for holding the registered add-ins. |
args : Deprecated | Array of arguments. |
blockUiOptions : Protected | Holds the dashboard jQuery.blockUI options. |
CDF_ERROR_DIV : Deprecated | Legacy identifier of the HTML div element used for showing errors. |
components : Protected | Array which stores all components in the dashboard. |
context : Protected | The dashboard context |
dataSources : Protected | Map of key value pairs: data source name - data source value. |
debug : Protected | The dashboard debug level. |
ERROR_CODES : Constant Protected | Dashboard error codes. |
escapeParameterValues : Protected | Defines if the parameter value needs to be encoded before being stored. |
flatParameters : Protected | Defines if parameters are stored in flat names or in nested objects. |
globalContext : Deprecated | Determines if components and parameters are retrieved from the |
i18nCurrentLanguageCode : Protected | The dashboard's current language code. |
i18nSupport : Protected | Localization object. |
initCounter : Deprecated Protected | Init counter. |
initialStorage : Protected | Holds the dashboard |
isSilent : Protected | Allows disabling dashboard notifications. |
lastServerResponse : Protected | Last server response timestamp. |
LEGACY_STORAGE : Deprecated Constant | Legacy storage parameter prefix. |
legacyPriority : Deprecated Protected | Legacy dashboard components do not have priority, so we will assign a very low priority to them. |
logLifecycle : Protected | Flag indicating if the lifecycle events should be logged. |
monthNames : Deprecated | Array of month names. |
parameterModel : Protected | Backbone model connected with the parameters. |
parameters : Protected | Store of key value pairs: parameter name - parameter value. |
queryFactories : Protected | Container used for registering query types and instantiating queries. |
refreshEngine : Protected | The |
runningCalls : Protected | Running calls counter. |
serverCheckResponseTimeout : Protected | Timeout value in milliseconds. |
STORAGE : Constant | Storage parameters prefix. |
storage : Protected | Allows a user to persist parameters server-side to be used across different dashboards. |
view : Protected | A view is a snapshot of the dashboard parameter's state, useful to restore a dashboard to a previous state. |
viewFlags : Constant | Object used to store the available view flag values (read only). |
viewParameters : Protected | Map containing the list of parameters of a dashboard and their |
webAppPath : Protected | The current webapp path. |
Methods
Name | Description |
---|---|
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 |
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. |
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 |
fireChange(parameter, value) | Changes the value of a parameter, triggering a |
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(name) : cdf.components.BaseComponent | undefined | Gets the component instance from a given name. |
getComponentByName() | Alias for |
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 |
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(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.< | Gets a list of the names of the dashboard parameters with the view flag set to |
getViewParameters() : Object | Gets a map with the dashboard parameters with the view flag set to |
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 |
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.< | Lists registered add-ins of a given type and subtype. |
listQueries() : Array.< | Lists the registered query types in this dashboard. |
loadStorage() | Loads the |
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 |
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 |
saveStorage() | Saves the |
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 |
setDataSource(name, obj) | Adds a data source overriding any existing one with the same name. |
setGlobalContext(globalContext) Deprecated | Sets the |
setI18nSupport(lc, i18nRef) | Sets the current locale and i18n options. |
setParam(parameterName, parameterValue, isNotified) : undefined | Alias for |
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 |
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
new Dashboard() |
---|
Source: Dashboard.Bootstrap.js, line 14 See also: Example 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(); }); |
Members Details
addIns: Protected |
---|
Serves as a container for holding the registered add-ins of the respective dashboard instance. Source: dashboard/Dashboard.addIns.js, line 86 Inherited From: cdf.dashboard.Dashboard#addIns |
args: Deprecated |
---|
Array of arguments. Source: dashboard/Dashboard.js, line 278 Inherited From: cdf.dashboard.Dashboard#args |
blockUiOptions: Protected |
---|
Holds the dashboard jQuery.blockUI options. Source: dashboard/Dashboard.notifications.js, line 66 Inherited From: cdf.dashboard.Dashboard#blockUiOptions |
CDF_ERROR_DIV: Deprecated |
---|
Legacy identifier of the HTML div element used for showing errors. Source: dashboard/Dashboard.legacy.js, line 199 Inherited From: cdf.dashboard.Dashboard#CDF_ERROR_DIV Default Value: cdfErrorDiv |
components: Protected |
---|
Array of instances of Source: dashboard/Dashboard.components.js, line 41 Inherited From: cdf.dashboard.Dashboard#components |
context: Protected |
---|
The dashboard context is used for holding user and server session information, such as the current locale and session timeout settings. It can be initialized in two different ways. The main way is via the dashboard constructor. If not, it will be initialized via the Source: dashboard/Dashboard.context.js, line 43 Inherited From: cdf.dashboard.Dashboard#context |
dataSources: Protected |
---|
Map of key value pairs where the keys are the data source names and the values are the corresponding data source Source: dashboard/Dashboard.dataSources.js, line 39 Inherited From: cdf.dashboard.Dashboard#dataSources |
debug: Protected |
---|
The dashboard debug level. Source: dashboard/Dashboard.js, line 325 Inherited From: cdf.dashboard.Dashboard#debug Default Value: 1 |
ERROR_CODES: Constant Protected | |||||||||
---|---|---|---|---|---|---|---|---|---|
Contains the default dashboard error codes.
Source: dashboard/Dashboard.notifications.js, line 46 Inherited From: cdf.dashboard.Dashboard#ERROR_CODES |
escapeParameterValues: Protected |
---|
Defines if the parameter value needs to be encoded before being stored. If true, then Source: dashboard/Dashboard.parameters.js, line 74 Inherited From: cdf.dashboard.Dashboard#escapeParameterValues |
flatParameters: Protected |
---|
Defines if parameters are stored in flat names or in nested objects. For instance, storing parameter name "param1.param2" with Source: dashboard/Dashboard.parameters.js, line 85 Inherited From: cdf.dashboard.Dashboard#flatParameters |
globalContext: Deprecated |
---|
Determines if components and parameters are retrieved from the Source: dashboard/Dashboard.js, line 208 Inherited From: cdf.dashboard.Dashboard#globalContext Default Value: false |
i18nCurrentLanguageCode: Protected |
---|
The dashboard's current language code, used by other localizable components. Source: dashboard/Dashboard.i18n.js, line 52 Inherited From: cdf.dashboard.Dashboard#i18nCurrentLanguageCode |
i18nSupport: Protected |
---|
Localization object, which will contain the property/value map and the method to get a value from a property. Source: dashboard/Dashboard.i18n.js, line 43 Inherited From: cdf.dashboard.Dashboard#i18nSupport |
initCounter: Deprecated Protected |
---|
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. Source: dashboard/Dashboard.lifecycle.js, line 44 Inherited From: cdf.dashboard.Dashboard#initCounter |
initialStorage: Protected |
---|
Holds the dashboard Source: dashboard/Dashboard.storage.js, line 54 Inherited From: cdf.dashboard.Dashboard#initialStorage |
isSilent: Protected |
---|
Allows disabling dashboard notifications. Source: dashboard/Dashboard.js, line 291 Inherited From: cdf.dashboard.Dashboard#isSilent |
lastServerResponse: Protected |
---|
Last server response timestamp in milliseconds, which used to know if the session expired. Source: dashboard/Dashboard.lifecycle.js, line 62 Inherited From: cdf.dashboard.Dashboard#lastServerResponse |
LEGACY_STORAGE: Deprecated Constant |
---|
Legacy storage parameter prefix. This allows users to store parameters between dashboard renders. Source: dashboard/Dashboard.parameters.js, line 96 Inherited From: cdf.dashboard.Dashboard#LEGACY_STORAGE Default Value: Dashboards.storage. |
legacyPriority: Deprecated Protected |
---|
Legacy dashboard components do not have priority, so we will assign a very low priority to them. Source: dashboard/Dashboard.js, line 259 Inherited From: cdf.dashboard.Dashboard#legacyPriority Default Value: -1000 |
logLifecycle: Protected |
---|
Flag indicating if the lifecycle events should be logged. Source: dashboard/Dashboard.js, line 269 Inherited From: cdf.dashboard.Dashboard#logLifecycle Default Value: true |
monthNames: Deprecated |
---|
Array of month names. Source: dashboard/Dashboard.js, line 288 Inherited From: cdf.dashboard.Dashboard#monthNames |
parameterModel: Protected |
---|
Backbone model connected with the parameters to provide an events system over the CDF parameters. Source: dashboard/Dashboard.parameters.js, line 48 Inherited From: cdf.dashboard.Dashboard#parameterModel See also: Backbone.Model |
parameters: Protected |
---|
Object which stores key value pairs with parameter name - parameter value. Source: dashboard/Dashboard.parameters.js, line 38 Inherited From: cdf.dashboard.Dashboard#parameters |
queryFactories: Protected |
---|
Container used for registering query types and instantiating queries. Implements the factory pattern, providing a generic interface for creating query instances of the specified type. Query types registered in this container will be accessible only by the dashboard instance. Source: dashboard/Dashboard.query.js, line 69 Inherited From: cdf.dashboard.Dashboard#queryFactories |
refreshEngine: Protected |
---|
The Source: dashboard/Dashboard.js, line 197 Inherited From: cdf.dashboard.Dashboard#refreshEngine |
runningCalls: Protected |
---|
Running calls counter used to control the progress indicator in asynchronous calls. Source: dashboard/Dashboard.lifecycle.js, line 53 Inherited From: cdf.dashboard.Dashboard#runningCalls |
serverCheckResponseTimeout: Protected |
---|
Timeout value in milliseconds. If Source: dashboard/Dashboard.lifecycle.js, line 75 Inherited From: cdf.dashboard.Dashboard#serverCheckResponseTimeout |
STORAGE: Constant |
---|
Storage parameters prefix. This allows users to store parameters between dashboard renders. Source: dashboard/Dashboard.parameters.js, line 105 Inherited From: cdf.dashboard.Dashboard#STORAGE Default Value: storage. |
storage: Protected |
---|
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. It can be initialized in two different ways. The main way is via the dashboard constructor. Otherwise, it will be initialized via the Source: dashboard/Dashboard.storage.js, line 43 Inherited From: cdf.dashboard.Dashboard#storage |
view: Protected |
---|
Holds a snapshot of the dashboard parameter's state, which is useful to restore a dashboard to a previous state. It can be initialized in two different ways. The main way is via the dashboard constructor. If not, it will be initialized via the Source: dashboard/Dashboard.views.js, line 56 Inherited From: cdf.dashboard.Dashboard#view |
viewFlags: Constant | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Object used to store the available view flag values (read only).
Source: dashboard/Dashboard.views.js, line 68 Inherited From: cdf.dashboard.Dashboard#viewFlags |
viewParameters: Protected |
---|
Map containing the list of parameters of a dashboard. The keys are the parameter names and the values are the Source: dashboard/Dashboard.views.js, line 42 Inherited From: cdf.dashboard.Dashboard#viewParameters |
webAppPath: Protected |
---|
The current webapp path. Source: dashboard/Dashboard.js, line 180 Inherited From: cdf.dashboard.Dashboard#webAppPath |
Methods Details
addComponent(component, options) : cdf.dashboard.Dashboard | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Adds an instance of
If the The Source: dashboard/Dashboard.components.js, line 133 Inherited From: cdf.dashboard.Dashboard#addComponent
|
addComponents(components) | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Adds one or more components to the dashboard. If a component was already added, it will not be replaced. It iterates through the array and calls Along with the Source: dashboard/Dashboard.components.js, line 107 Inherited From: cdf.dashboard.Dashboard#addComponents
See also: |
addDataSource(name, obj, force) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a data source given a name, the data source object to be added, and an optional Source: dashboard/Dashboard.dataSources.js, line 93 Inherited From: cdf.dashboard.Dashboard#addDataSource
|
addParameter(parameterName, parameterValue) : Object | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Adds a new parameter to the parameter module. 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 Source: dashboard/Dashboard.parameters.js, line 267 Inherited From: cdf.dashboard.Dashboard#addParameter
|
blockUIwithDrag() |
---|
Renders a blocking div which can be dragged. Source: dashboard/Dashboard.notifications.js, line 99 Inherited From: cdf.dashboard.Dashboard#blockUIwithDrag |
callPentahoAction(obj, solution, path, action, parameters, callback) : Object | string Deprecated | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Calls an xaction. Source: dashboard/Dashboard.legacy.js, line 56 Inherited From: cdf.dashboard.Dashboard#callPentahoAction
See also: |
checkServer() : boolean | ||||
---|---|---|---|---|
Executes a jQuery.ajax to test the connection to the server. Uses HTTP POST to avoid cache. Source: dashboard/Dashboard.notifications.js, line 264 Inherited From: cdf.dashboard.Dashboard#checkServer
|
cleanStorage() |
---|
Resets the Source: dashboard/Dashboard.storage.js, line 152 Inherited From: cdf.dashboard.Dashboard#cleanStorage |
createAndCleanErrorDiv() Deprecated |
---|
Creates an empty HTML div element, with identifier Source: dashboard/Dashboard.legacy.js, line 208 Inherited From: cdf.dashboard.Dashboard#createAndCleanErrorDiv |
decrementRunningCalls() |
---|
Decrements the running calls counter and if it reaches 0, hides the progress indicator. Source: dashboard/Dashboard.lifecycle.js, line 135 Inherited From: cdf.dashboard.Dashboard#decrementRunningCalls |
detectQueryType(qd) : String | undefined | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Given a query definition object, returns its query type. The query can have three groups of types. First Source: dashboard/Dashboard.query.js, line 154 Inherited From: cdf.dashboard.Dashboard#detectQueryType
|
errorNotification(err, ph) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Displays an error notification if the dashboard is not in silent mode. Source: dashboard/Dashboard.notifications.js, line 215 Inherited From: cdf.dashboard.Dashboard#errorNotification
|
executeAjax(returnType, url, params, func) : Object | string Deprecated | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Executes an Ajax request. If no Source: dashboard/Dashboard.legacy.js, line 103 Inherited From: cdf.dashboard.Dashboard#executeAjax
|
fetchData(cd, params, callback) Deprecated | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Fetches data from the server according to a query definition Source: dashboard/Dashboard.legacy.js, line 337 Inherited From: cdf.dashboard.Dashboard#fetchData
|
fireChange(parameter, value) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Changes the value of a parameter with the provided name. Triggers the 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. Source: dashboard/Dashboard.lifecycle.js, line 749 Inherited From: cdf.dashboard.Dashboard#fireChange
Fires: cdf.event:cdf , cdf.dashboard.Dashboard#event:parameterName:fireChange |
generateBookmarkState() : Object | ||||
---|---|---|---|---|
Generates a bookmark state using stored values. Source: dashboard/Dashboard.bookmarkable.js, line 147 Inherited From: cdf.dashboard.Dashboard#generateBookmarkState
|
getAddIn(type, subType, addInName) : cdf.AddIn | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the add-in with the specified name, subtype and type from the add-in registry for this dashboard. Source: dashboard/Dashboard.addIns.js, line 155 Inherited From: cdf.dashboard.Dashboard#getAddIn
|
getBaseQuery() : cdf.queries.BaseQuery | ||||
---|---|---|---|---|
Gets the base query object constructor from where other query types can be extended. Source: dashboard/Dashboard.query.js, line 88 Inherited From: cdf.dashboard.Dashboard#getBaseQuery
|
getBookmarkState() : Object | ||||
---|---|---|---|---|
Gets the bookmark state URL decoded. Source: dashboard/Dashboard.bookmarkable.js, line 215 Inherited From: cdf.dashboard.Dashboard#getBookmarkState
|
getComp() |
---|
Alias for Source: dashboard/Dashboard.components.js, line 81 Inherited From: cdf.dashboard.Dashboard#getComp |
getComponent(name) : cdf.components.BaseComponent | undefined | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the component given a string representing the component's name. 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 Source: dashboard/Dashboard.components.js, line 65 Inherited From: cdf.dashboard.Dashboard#getComponent
Example var myComponent = myDashboard.getComponent("myInputComponent"); |
getComponentByName() |
---|
Alias for Source: dashboard/Dashboard.components.js, line 89 Inherited From: cdf.dashboard.Dashboard#getComponentByName |
getComponentIndex(compOrNameOrIndex) : number | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Get the index of the array If Source: dashboard/Dashboard.components.js, line 177 Inherited From: cdf.dashboard.Dashboard#getComponentIndex
|
getDataSource(obj) : Object | undefined | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a data source according to the provided name or query definition object with a Source: dashboard/Dashboard.dataSources.js, line 142 Inherited From: cdf.dashboard.Dashboard#getDataSource
|
getDataSourceQuery(obj) : Object | undefined | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets a query from Source: dashboard/Dashboard.dataSources.js, line 158 Inherited From: cdf.dashboard.Dashboard#getDataSourceQuery
|
getErrorObj(errorCode) : Object | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Given an error code, returns the registered error object associated with that code. Source: dashboard/Dashboard.notifications.js, line 155 Inherited From: cdf.dashboard.Dashboard#getErrorObj
|
getMessagesPath() : string Abstract | ||||
---|---|---|---|---|
Gets the path from which to load the locale-specific properties files. If this method returns It will be overridden returning the appropriate dashboard path in embedded scenarios. Source: dashboard/Dashboard.i18n.js, line 128 Inherited From: cdf.dashboard.Dashboard#getMessagesPath
|
getParam(parameterName) : Object | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Alias for Source: dashboard/Dashboard.parameters.js, line 306 Inherited From: cdf.dashboard.Dashboard#getParam
|
getParameterValue(parameterName) : Object | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets the parameter value from a given parameter name. If the argument is invalid, Source: dashboard/Dashboard.parameters.js, line 289 Inherited From: cdf.dashboard.Dashboard#getParameterValue
|
getQuery(type, opts) : cdf.queries.BaseQuery | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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. Source: dashboard/Dashboard.query.js, line 203 Inherited From: cdf.dashboard.Dashboard#getQuery
See also: Example // 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"}); |
getRunningCalls() : number | ||||
---|---|---|---|---|
Returns the number of running calls. Source: dashboard/Dashboard.lifecycle.js, line 117 Inherited From: cdf.dashboard.Dashboard#getRunningCalls
|
getSettingsValue(key, value) Deprecated | |||||||||
---|---|---|---|---|---|---|---|---|---|
Gets a setting value from the server. Source: dashboard/Dashboard.legacy.js, line 309 Inherited From: cdf.dashboard.Dashboard#getSettingsValue
|
getUnboundParameters() : Array.< | ||||
---|---|---|---|---|
Gets a list of the names of the dashboard parameters with the view flag set to Source: dashboard/Dashboard.views.js, line 183 Inherited From: cdf.dashboard.Dashboard#getUnboundParameters
|
getViewParameters() : Object | ||||
---|---|---|---|---|
Gets a map with the pairs parameter name - parameter value, with all dashboard parameters with the view flag set to Source: dashboard/Dashboard.views.js, line 162 Inherited From: cdf.dashboard.Dashboard#getViewParameters
|
getWcdfSettings() : Object Abstract | ||||
---|---|---|---|---|
Gets the dashboard's wcdfSettings. It will be overridden returning the proper wcdf settings in embedded scenarios. Source: dashboard/Dashboard.js, line 382 Inherited From: cdf.dashboard.Dashboard#getWcdfSettings
|
getWebAppPath() : string | ||||
---|---|---|---|---|
Gets the current webapp path. Source: dashboard/Dashboard.js, line 370 Inherited From: cdf.dashboard.Dashboard#getWebAppPath
|
handleServerError() |
---|
Handles a server error. Source: dashboard/Dashboard.notifications.js, line 202 Inherited From: cdf.dashboard.Dashboard#handleServerError Fires: cdf.event:cdf , cdf.dashboard.Dashboard#event:cdf:serverError |
hasAddIn(type, subType, addInName) : boolean | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Checks if the add-in with the specified name, subtype and type exists in the add-in registry for this dashboard. Source: dashboard/Dashboard.addIns.js, line 139 Inherited From: cdf.dashboard.Dashboard#hasAddIn
|
hasQuery(type) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Determines if a given query type is registered in the current dashboard. Source: dashboard/Dashboard.query.js, line 136 Inherited From: cdf.dashboard.Dashboard#hasQuery
|
hideProgressIndicator(force) | ||||||
---|---|---|---|---|---|---|
Hides the progress indicator if the dashboard is not in silent mode. Optionally, resets the running calls counter. Source: dashboard/Dashboard.notifications.js, line 136 Inherited From: cdf.dashboard.Dashboard#hideProgressIndicator
|
incrementRunningCalls() |
---|
Increments the running calls counter. Source: dashboard/Dashboard.lifecycle.js, line 125 Inherited From: cdf.dashboard.Dashboard#incrementRunningCalls |
init(components) | ||||||
---|---|---|---|---|---|---|
Dashboard's initialization function. Calling this method will trigger the dashboard execution and render. Source: dashboard/Dashboard.lifecycle.js, line 152 Inherited From: cdf.dashboard.Dashboard#init
|
isBookmarkable(parameter) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Checks if a Source: dashboard/Dashboard.bookmarkable.js, line 137 Inherited From: cdf.dashboard.Dashboard#isBookmarkable
|
isValidQueryDefinition(queryDefinition) : boolean | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Tests if a query definition is valid or not. It checks if the return value of the Source: dashboard/Dashboard.query.js, line 242 Inherited From: cdf.dashboard.Dashboard#isValidQueryDefinition
See also: |
isViewParameter(parameter) : string | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Returns the view flag value of a given parameter. Source: dashboard/Dashboard.views.js, line 147 Inherited From: cdf.dashboard.Dashboard#isViewParameter
|
listAddIns(type, subType) : Array.< | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Lists registered add-ins of a given type and subtype. Source: dashboard/Dashboard.addIns.js, line 194 Inherited From: cdf.dashboard.Dashboard#listAddIns
|
listQueries() : Array.< | ||||
---|---|---|---|---|
Lists the registered query types in this dashboard. Source: dashboard/Dashboard.query.js, line 252 Inherited From: cdf.dashboard.Dashboard#listQueries
|
loadStorage() |
---|
Retrieves the Source: dashboard/Dashboard.storage.js, line 83 Inherited From: cdf.dashboard.Dashboard#loadStorage |
loginAlert(newOpts) | ||||||
---|---|---|---|---|---|---|
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. Source: dashboard/Dashboard.notifications.js, line 238 Inherited From: cdf.dashboard.Dashboard#loginAlert
Fires: cdf.event:cdf , cdf.dashboard.Dashboard#event:cdf:loginError |
normalizeId(id) : string Abstract | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
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. Source: dashboard/Dashboard.js, line 397 Inherited From: cdf.dashboard.Dashboard#normalizeId
|
parseXActionResult(obj, html) : Object Deprecated | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Parses the xaction result. If errors are detected they will be writen in the appropriate DOM object of the provided Source: dashboard/Dashboard.legacy.js, line 246 Inherited From: cdf.dashboard.Dashboard#parseXActionResult
|
pentahoAction(solution, path, action, params, func) : Object | string Deprecated | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Another way to call an xaction. Source: dashboard/Dashboard.legacy.js, line 158 Inherited From: cdf.dashboard.Dashboard#pentahoAction
See also: |
pentahoServiceAction(serviceMethod, returntype, solution, path, action, params, func) : Object | string Deprecated | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Calls an xaction. Source: dashboard/Dashboard.legacy.js, line 177 Inherited From: cdf.dashboard.Dashboard#pentahoServiceAction
See also: |
persistBookmarkables(param) | ||||||
---|---|---|---|---|---|---|
If Source: dashboard/Dashboard.bookmarkable.js, line 167 Inherited From: cdf.dashboard.Dashboard#persistBookmarkables
|
processChange(object_name) | ||||||
---|---|---|---|---|---|---|
Given the component with name We get the
Source: dashboard/Dashboard.lifecycle.js, line 710 Inherited From: cdf.dashboard.Dashboard#processChange
|
registerAddIn(type, subType, addIn) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Registers an add-in to be used only by this dashboard instance. Source: dashboard/Dashboard.addIns.js, line 122 Inherited From: cdf.dashboard.Dashboard#registerAddIn
|
registerGlobalAddIn(type, subType, addIn) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
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. Source: dashboard/Dashboard.addIns.js, line 109 Inherited From: cdf.dashboard.Dashboard#registerGlobalAddIn
|
registerQuery(type, query) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Registers a new query type constructor to be used by the dashboard instance. If the If 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 Source: dashboard/Dashboard.query.js, line 108 Inherited From: cdf.dashboard.Dashboard#registerQuery
|
removeComponent(compOrNameOrIndex) : cdf.components.BaseComponent | undefined | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Removes a component from the If argument is a Source: dashboard/Dashboard.components.js, line 215 Inherited From: cdf.dashboard.Dashboard#removeComponent
See also: |
removeDataSource(obj) | ||||||
---|---|---|---|---|---|---|
Removes the data source with the provided name. If Source: dashboard/Dashboard.dataSources.js, line 193 Inherited From: cdf.dashboard.Dashboard#removeDataSource
|
resetAll() |
---|
Resets the dashboard, clearing all the components, and re-updating them. Source: dashboard/Dashboard.lifecycle.js, line 685 Inherited From: cdf.dashboard.Dashboard#resetAll |
resetRunningCalls() |
---|
Resets the running calls counter and hides the progress indicator. Source: dashboard/Dashboard.lifecycle.js, line 104 Inherited From: cdf.dashboard.Dashboard#resetRunningCalls |
restoreBookmarkables() |
---|
This method uses Source: dashboard/Dashboard.bookmarkable.js, line 250 Inherited From: cdf.dashboard.Dashboard#restoreBookmarkables |
restoreView() |
---|
Restores the dashboard parameters stored in a Source: dashboard/Dashboard.views.js, line 104 Inherited From: cdf.dashboard.Dashboard#restoreView |
saveStorage() |
---|
Saves the Source: dashboard/Dashboard.storage.js, line 116 Inherited From: cdf.dashboard.Dashboard#saveStorage |
setAddInDefaults(type, subType, addInName, defaults) | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sets the default options of an add-in. Source: dashboard/Dashboard.addIns.js, line 177 Inherited From: cdf.dashboard.Dashboard#setAddInDefaults
|
setBookmarkable(parameter, value) | |||||||||
---|---|---|---|---|---|---|---|---|---|
It sets Source: dashboard/Dashboard.bookmarkable.js, line 122 Inherited From: cdf.dashboard.Dashboard#setBookmarkable
|
setBookmarkState(state) | ||||||
---|---|---|---|---|---|---|
Overrides a bookmark state with a given Source: dashboard/Dashboard.bookmarkable.js, line 190 Inherited From: cdf.dashboard.Dashboard#setBookmarkState
|
setDataSource(name, obj) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Adds a data source. If a data source already exists with the same name, it is replaced with the new one. Source: dashboard/Dashboard.dataSources.js, line 175 Inherited From: cdf.dashboard.Dashboard#setDataSource
|
setGlobalContext(globalContext) Deprecated | ||||||
---|---|---|---|---|---|---|
Sets the Source: dashboard/Dashboard.js, line 360 Inherited From: cdf.dashboard.Dashboard#setGlobalContext
|
setI18nSupport(lc, i18nRef) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Sets the current locale and i18n options. Source: dashboard/Dashboard.i18n.js, line 114 Inherited From: cdf.dashboard.Dashboard#setI18nSupport
|
setParam(parameterName, parameterValue, isNotified) : undefined | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Alias for Source: dashboard/Dashboard.parameters.js, line 356 Inherited From: cdf.dashboard.Dashboard#setParam
|
setParameter(parameterName, parameterValue, isNotified) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Stores a parameter value with a certain parameter name. If the parameter name is not valid, Since parameters are stored using the Backbone event model, an extra parameter - If Source: dashboard/Dashboard.parameters.js, line 326 Inherited From: cdf.dashboard.Dashboard#setParameter
|
setParameterViewMode(parameter, value) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Sets the view flag for a given parameter. If none is provided it defaults to Source: dashboard/Dashboard.views.js, line 132 Inherited From: cdf.dashboard.Dashboard#setParameterViewMode
|
setSettingsValue(name, object) Deprecated | |||||||||
---|---|---|---|---|---|---|---|---|---|
Sets a setting in the server. Source: dashboard/Dashboard.legacy.js, line 290 Inherited From: cdf.dashboard.Dashboard#setSettingsValue
|
showErrorTooltip() Deprecated |
---|
Creates an empty HTML div element for showing error messages. Source: dashboard/Dashboard.legacy.js, line 221 Inherited From: cdf.dashboard.Dashboard#showErrorTooltip |
showProgressIndicator() |
---|
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. Source: dashboard/Dashboard.notifications.js, line 122 Inherited From: cdf.dashboard.Dashboard#showProgressIndicator |
syncDebugLevel() : number | ||||
---|---|---|---|---|
Sets the Source: dashboard/Dashboard.js, line 338 Inherited From: cdf.dashboard.Dashboard#syncDebugLevel
|
update(component) | ||||||
---|---|---|---|---|---|---|
Adds a component to the "to be updated" queue and starts a timer. If the timer finishes before this method is called again, the Source: dashboard/Dashboard.lifecycle.js, line 598 Inherited From: cdf.dashboard.Dashboard#update
|
updateComponent(object) | ||||||
---|---|---|---|---|---|---|
Updates a specific component. Source: dashboard/Dashboard.lifecycle.js, line 630 Inherited From: cdf.dashboard.Dashboard#updateComponent
|
urlAction(url, params, func) : Object | string Deprecated | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Calls an arbitrary URL expecting the result content type to be xml. Source: dashboard/Dashboard.legacy.js, line 82 Inherited From: cdf.dashboard.Dashboard#urlAction
See also: |
Events Details
cdf:loginError |
---|
Event triggered when login fails. Source: dashboard/_doc/events.jsdoc, line 48 Inherited From: cdf.dashboard.Dashboard#event:cdf:loginError |
cdf:postInit |
---|
Event triggered after the dashboard finishes initializing. Source: dashboard/_doc/events.jsdoc, line 27 Inherited From: cdf.dashboard.Dashboard#event:cdf:postInit |
cdf:preInit |
---|
Event triggered before the dashboard starts initializing. Source: dashboard/_doc/events.jsdoc, line 19 Inherited From: cdf.dashboard.Dashboard#event:cdf:preInit |
cdf:serverError |
---|
Event triggered when a server error occurs. Source: dashboard/_doc/events.jsdoc, line 56 Inherited From: cdf.dashboard.Dashboard#event:cdf:serverError |
parameterName:fireChange(obj) | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Event triggered when the dashboard parameter value changes. The name of the event is formed using the name of the parameter and the suffix Source: dashboard/_doc/events.jsdoc, line 35 Inherited From: cdf.dashboard.Dashboard#event:parameterName:fireChange
|