Ignite UI API Reference
ig.OlapResult
Represents the result evaluated for the current state of the data source.
Code Sample
<!doctype html>
<html>
<head>
<!-- jQuery Core -->
<script src="js/jquery.js" type="text/javascript"></script>
<!-- jQuery UI -->
<script src="js/jquery-ui.js" type="text/javascript"></script>
<!-- Infragistics Combined Scripts -->
<script src="js/infragistics.core.js" type="text/javascript"></script>
<script src="js/infragistics.lob.js" type="text/javascript"></script>
<script type="text/javascript">
$.support.cors = true;
$(function () {
var dataSource = new $.ig.OlapXmlaDataSource({
serverUrl: "http://sampledata.infragistics.com/olap/msmdpump.dll",
catalog: "Adventure Works DW Standard Edition",
cube: "Adventure Works",
rows: "[Date].[Calendar]",
measures: "[Measures].[Customer Count], [Measures].[Internet Order Count]"
});
dataSource.initialize().done(function(metadataTree) {
// the result of the pre-loaded rows, columns, filters and measures is evaluated as part of initialization
var result = dataSource.result();
});
});
</script>
</head>
<body>
</body>
</html>
Related Topics
Dependencies
jquery-1.4.4.js
infragistics.util.js
The current widget has no options.
The current widget has no events.
-
axes
- .axes( value:object );
- Return Type:
- array
- Return Type Description:
- An array of $.ig.OlapResultAxis objects.
Returns an array of $.ig.OlapResultAxis objects this result is built on.
- value
- Type:object
-
cells
- .cells( value:object );
- Return Type:
- array
- Return Type Description:
- An array of $.ig.OlapResultCell objects.
Returns an array of $.ig.OlapResultCell objects which hold the result data.
- value
- Type:object
-
isEmpty
- .isEmpty( value:object );
- Return Type:
- bool
- Return Type Description:
- A value indicating whether the result object contains any data.
Returns a value indicating whether the result object contains any data.
- value
- Type:object