docs.intersystems.com
Home  /  Application Development: Analytics Options  /  Client-Side APIs for InterSystems IRIS Business Intelligence  /  DeepSee.js  /  DeepSeeDataController


Client-Side APIs for InterSystems IRIS Business Intelligence
DeepSeeDataController
[Back]  [Next] 
InterSystems: The power behind what matters   
Search:  


Enables you to work with a Business Intelligence data source.
Where This Object Is Available
This object is available in client-side JavaScript code, if that code includes DeepSee.js. See Introduction to DeepSee.js.”
Creating This Object
To create a Business Intelligence data controller object, use code like the following:
var controller = new DeepSeeDataController(configuration,finalCallback,pendingCallback);
Where:
Methods of This Object
The Business Intelligence data controller object provides the following JavaScript methods:
applyFilter()
applyFilter(filterInfo)
Where filterInfo is an object that contains the filterName and filterSpec properties.
This method adds the given filter to the filters used by the data controller, reruns the query, and then invokes the callback functions associated with the data controller object.
This method has no return value.
attachTotals()
attachTotals(rowTotals,columnTotals,reattach)
Where:
This method attaches totals to the data controller object and then invokes the callback functions associated with the data controller object.
This method has no return value.
getCurrentData()
getCurrentData()
Returns a Business Intelligence result set object that contains the results from the query currently defined by the data controller object. See the reference for the DeepSeeResultSet object.
getCurrentQueryText()
getCurrentQueryText()
Returns the text of the query currently defined by the data controller object.
runDrillDown()
runDrillDown(axis, position)
Where:
This method executes the given drilldown action, and then invokes the callback functions associated with the data controller object.
This method has no return value.
runListing()
runListing(startRow, startCol, endRow, endCol, listingName)
Where:
This method executes the given detail listing for one or more cells of the results, and then invokes the callback functions associated with the data controller object.
This method has no return value.
runQuery()
runQuery()
Executes the query currently defined by the data controller object. When the query is pending or completed, the system invokes the callback functions associated with the data controller object.
This method has no return value.
sortResults()
sortResults(axis, position, direction, sortType)
Where:
This method sorts the results as requested and then invokes the callback functions associated with the data controller object.
This method has no return value.
undoLastAction()
undoLastAction()
Undoes the last change and invokes the callback functions associated with the data controller object.
This method has no return value.