XmlaDiscoverQuery
cdf.queries. XmlaDiscoverQuery
Class that represents an XML/A Discover query. This class will be registered globally using the static dashboard function registerGlobalQuery
.
The constructor of this class is created dynamically and registered in the dashboard query container queryFactories
.
To create a new XML/A Discover query use the dashboard function getQuery
.
Source: queries/XmlaQuery.js, line 368
Extends
Example
dashboard.addDataSource("myXmlaDiscQuery", {queryType: "xmlaDiscover", ...}); dashboard.getQuery({dataSource: "myXmlaDiscQuery"}).doQuery(successCallback, errorCallback);
Members
Name | Description |
---|---|
_label : Constant Protected | The class label. |
_name : Constant Protected | The class name. |
dashboard : Protected | A reference to the dashboard instance. |
deepProperties : Constant Protected | A list of properties to be extended to the registered queries. |
defaults : Protected | The default properties. |
interfaces : Protected | The default interfaces. |
label : Constant Protected | The class label. |
name : Constant Protected | The class name. |
queryDefinition : Protected | The query definition |
Methods
Name | Description |
---|---|
buildQueryDefinition(overrides) Abstract | Builds the query definition |
doQuery(outsideCallback) | Executes the query and processes the result. |
exportData() Abstract | Exports the data represented by the query. |
fetchData(params, successCallback, errorCallback) : Object | Fetches the data. |
getErrorHandler(callback) : function | Gets the error callback handler. |
getOption(prop) : Object | Gets an option (fallback for when the OptionManager is not available). |
getPage(targetPage, outsideCallback) : boolean | Object | Gets the set of results for the page at index |
getSuccessHandler(callback) : function | Gets the success callback handler. |
init(queryDefinition) | Initializes an XML/A Discover query. |
initPage(pageSize, outsideCallback) : boolean | Object | Sets the page size and gets the first page of results. |
lastProcessedResults() : Object | Gets the last retrieved result after being processed by postFetch. |
lastResults() : Object | Gets the last retrieved result. |
nextPage(outsideCallback) : Object | Gets the next page of results, as controlled by the |
pageStartingAt(page, outsideCallback) : boolean | Object | Runs the query, setting a starting page before doing so. |
previousPage(outsideCallback) : Object | Gets the previous page of results, as controlled by the |
reprocessLastResults(outerCallback) : Object | Reruns the success callback on the last retrieved result set from the server. |
reprocessResults(outsideCallback) : Object | Alias for |
setAjaxOptions(newOptions) | Sets the jQuery.ajax options for the query. |
setCallback(callback) | Sets the success callback for the query. |
setErrorCallback(callback) | Sets the error callback for the query. |
setOption(prop, value) | Sets an option (fallback for when the OptionManager is not available). |
setPageSize(pageSize) | Sets the page size. |
setPageStartingAt(targetPage) : boolean | Sets the starting page for later executions of the query. |
setParameters(params) | Sets query parameters. |
setSearchPattern(pattern) | Sets the search pattern for the query. |
setSortBy(sortBy) Abstract | Sets the sorting options. |
sortBy(sortBy, outsideCallback) Abstract | Sorts the data and executes a callback. |
transformXMLADiscoverResults(results) : object | Formats the XML/A Discover query result. |
Members Details
_label: Constant Protected |
---|
The class label. Source: queries/BaseQuery.js, line 50 Inherited From: cdf.queries.BaseQuery#_label Default Value: "Base Query" |
_name: Constant Protected |
---|
The class name. Source: queries/BaseQuery.js, line 35 Inherited From: cdf.queries.BaseQuery#_name Default Value: "baseQuery" |
dashboard: Protected |
---|
A reference to the dashboard instance. Source: queries/BaseQuery.js, line 76 Inherited From: cdf.queries.BaseQuery#dashboard |
deepProperties: Constant Protected |
---|
A list of properties to be extended to the registered queries that do not provide their own constructor function. Source: queries/BaseQuery.js, line 67 Inherited From: cdf.queries.BaseQuery#deepProperties Default Value: See also: |
defaults: Protected | ||||||
---|---|---|---|---|---|---|
The default properties.
Source: queries/XmlaQuery.js, line 428 Overrides: cdf.queries.BaseQuery#defaults |
interfaces: Protected | ||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The default interfaces.
Source: queries/BaseQuery.js, line 137 Inherited From: cdf.queries.BaseQuery#interfaces |
label: Constant Protected |
---|
The class label. Source: queries/XmlaQuery.js, line 408 Default Value: "XML/A Discover Query" |
name: Constant Protected |
---|
The class name. Source: queries/XmlaQuery.js, line 396 Default Value: "xmlaDiscover" |
queryDefinition: Protected |
---|
The query definition Source: queries/XmlaQuery.js, line 418 Default Value: {} |
Methods Details
buildQueryDefinition(overrides) Abstract | ||||||
---|---|---|---|---|---|---|
Builds the query definition Source: queries/BaseQuery.js, line 216 Inherited From: cdf.queries.BaseQuery#buildQueryDefinition
|
doQuery(outsideCallback) | ||||||
---|---|---|---|---|---|---|
Executes Source: queries/XmlaQuery.js, line 501 Overrides: cdf.queries.BaseQuery#doQuery
|
exportData() Abstract |
---|
Exports the data represented by the query. Source: queries/BaseQuery.js, line 288 Inherited From: cdf.queries.BaseQuery#exportData |
fetchData(params, successCallback, errorCallback) : Object | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Fetches the data. Source: queries/BaseQuery.js, line 349 Inherited From: cdf.queries.BaseQuery#fetchData
|
getErrorHandler(callback) : function | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets the error callback handler that executes the provided callback when the query fails to execute. Source: queries/BaseQuery.js, line 252 Inherited From: cdf.queries.BaseQuery#getErrorHandler
|
getOption(prop) : Object | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets an option (fallback for when the OptionManager is not available). Source: queries/BaseQuery.js, line 182 Inherited From: cdf.queries.BaseQuery#getOption
|
getPage(targetPage, outsideCallback) : boolean | Object | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the set of results for the page at index Source: queries/BaseQuery.js, line 579 Inherited From: cdf.queries.BaseQuery#getPage
|
getSuccessHandler(callback) : function | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Gets the success callback handler that executes the provided callback when the query executes successfully. Source: queries/BaseQuery.js, line 229 Inherited From: cdf.queries.BaseQuery#getSuccessHandler
|
init(queryDefinition) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Initializes an XML/A Discover query. Source: queries/XmlaQuery.js, line 442 Overrides: cdf.queries.BaseQuery#init
|
initPage(pageSize, outsideCallback) : boolean | Object | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sets the page size and gets the first page of results. Source: queries/BaseQuery.js, line 651 Inherited From: cdf.queries.BaseQuery#initPage
|
lastProcessedResults() : Object | ||||||||
---|---|---|---|---|---|---|---|---|
Gets the last retrieved result after being processed by postFetch. Source: queries/BaseQuery.js, line 431 Inherited From: cdf.queries.BaseQuery#lastProcessedResults
|
lastResults() : Object | ||||||||
---|---|---|---|---|---|---|---|---|
Gets the last retrieved result. Source: queries/BaseQuery.js, line 415 Inherited From: cdf.queries.BaseQuery#lastResults
|
nextPage(outsideCallback) : Object | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the next page of results, as controlled by the Source: queries/BaseQuery.js, line 533 Inherited From: cdf.queries.BaseQuery#nextPage
|
pageStartingAt(page, outsideCallback) : boolean | Object | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Runs the query, setting a starting page before doing so. If the starting page matches the already selected one, the query run is canceled and Source: queries/BaseQuery.js, line 623 Inherited From: cdf.queries.BaseQuery#pageStartingAt
|
previousPage(outsideCallback) : Object | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets the previous page of results, as controlled by the Source: queries/BaseQuery.js, line 554 Inherited From: cdf.queries.BaseQuery#previousPage
|
reprocessLastResults(outerCallback) : Object | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Reruns the success callback on the last retrieved result set from the server. Source: queries/BaseQuery.js, line 448 Inherited From: cdf.queries.BaseQuery#reprocessLastResults
See also: |
reprocessResults(outsideCallback) : Object | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Alias for Source: queries/BaseQuery.js, line 473 Inherited From: cdf.queries.BaseQuery#reprocessResults
See also: |
setAjaxOptions(newOptions) | ||||||
---|---|---|---|---|---|---|
Sets the jQuery.ajax options for the query. Source: queries/BaseQuery.js, line 298 Inherited From: cdf.queries.BaseQuery#setAjaxOptions
|
setCallback(callback) | ||||||
---|---|---|---|---|---|---|
Sets the success callback for the query. Source: queries/BaseQuery.js, line 493 Inherited From: cdf.queries.BaseQuery#setCallback
|
setErrorCallback(callback) | ||||||
---|---|---|---|---|---|---|
Sets the error callback for the query. Source: queries/BaseQuery.js, line 503 Inherited From: cdf.queries.BaseQuery#setErrorCallback
|
setOption(prop, value) | |||||||||
---|---|---|---|---|---|---|---|---|---|
Sets an option (fallback for when the OptionManager is not available). Source: queries/BaseQuery.js, line 193 Inherited From: cdf.queries.BaseQuery#setOption
|
setPageSize(pageSize) | ||||||
---|---|---|---|---|---|---|
Sets the page size. Source: queries/BaseQuery.js, line 637 Inherited From: cdf.queries.BaseQuery#setPageSize
|
setPageStartingAt(targetPage) : boolean | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Sets the starting page for later executions of the query. Source: queries/BaseQuery.js, line 601 Inherited From: cdf.queries.BaseQuery#setPageStartingAt
|
setParameters(params) | ||||||
---|---|---|---|---|---|---|
Sets query parameters. Source: queries/BaseQuery.js, line 483 Inherited From: cdf.queries.BaseQuery#setParameters
|
setSearchPattern(pattern) | ||||||
---|---|---|---|---|---|---|
Sets the search pattern for the query. Source: queries/BaseQuery.js, line 513 Inherited From: cdf.queries.BaseQuery#setSearchPattern
|
setSortBy(sortBy) Abstract | ||||||
---|---|---|---|---|---|---|
Sets the sorting options. Source: queries/BaseQuery.js, line 321 Inherited From: cdf.queries.BaseQuery#setSortBy
|
sortBy(sortBy, outsideCallback) Abstract | |||||||||
---|---|---|---|---|---|---|---|---|---|
Sorts the data, specifying a callback that will be called after the sorting takes place. Source: queries/BaseQuery.js, line 333 Inherited From: cdf.queries.BaseQuery#sortBy
|
transformXMLADiscoverResults(results) : object | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
Formats the XML/A Discover query result as an object with metadata and resultset properties. Source: queries/XmlaQuery.js, line 465
|