Ignite UI API Reference
ig.OlapMetadataTreeItem
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) {
// metadataTree parameter represens the metadata tree root node
// measures' dimension and all hierarchy dimensions are accessible through root node children collection
var dimensionNodes = metadataTree.children();
});
});
</script>
</head>
<body>
</body>
</html>
Related Topics
Dependencies
-
caption
- .caption( );
- Return Type:
- string
- Return Type Description:
- The caption text.
Returns the caption text that should be displayed for this tree item.
-
children
- .children( );
- Return Type:
- object
- Return Type Description:
- An array of items of type $.ig.OlapMetadataTreeItem.
Returns the children ot this tree item.
-
item
- .item( );
- Return Type:
- object
- Return Type Description:
- An object of type $.ig.Cube, $.ig.Dimension, $.ig.Hierarchy, $.ig.Measure, $.ig.Level.
Returns the OLAP metadata item that this tree item represents which is an object of type $.ig.Cube, $.ig.Dimension, $.ig.Hierarchy, $.ig.Measure, $.ig.Level.
-
type
- .type( );
- Return Type:
- number
- Return Type Description:
- A value from the $.ig.MetadataTreeItemType enumeration.
Returns the metadata tree item type which is a value from the $.ig.MetadataTreeItemType enumeration.
$.ig.MetadataTreeItemType.prototype.cube = 0;
Item type for the cube tree items. Contain an item() of type $.ig.Cube.
$.ig.MetadataTreeItemType.prototype.dimension = 1;
Item type for the dimension tree items. Contain an item() of type $.ig.Dimension.
$.ig.MetadataTreeItemType.prototype.group = 2;
Item type for the group tree items. Does not have item().
$.ig.MetadataTreeItemType.prototype.userDefinedHierarchy = 3;
Item type for the userDefinedHierarchy tree items. Contain an item() of type $.ig.Hierarchy.
$.ig.MetadataTreeItemType.prototype.systemEnabledHierarchy = 4;
Item type for the systemEnabledHierarchy tree items. Contain an item() of type $.ig.Hierarchy.
$.ig.MetadataTreeItemType.prototype.parentChildHierarchy = 5;
Item type for the parentChildHierarchy tree items. Contain an item() of type $.ig.Hierarchy.
$.ig.MetadataTreeItemType.prototype.measure = 6;
Item type for the measure tree items. Contain an item() of type $.ig.Measure.
$.ig.MetadataTreeItemType.prototype.level1 = 7;
Item type for the level1 tree items. Contain an item() of type $.ig.Level.
$.ig.MetadataTreeItemType.prototype.level2 = 8;
Item type for the level2 tree items. Contain an item() of type $.ig.Level.
$.ig.MetadataTreeItemType.prototype.level3 = 9;
Item type for the level3 tree items. Contain an item() of type $.ig.Level.
$.ig.MetadataTreeItemType.prototype.level4 = 10;
Item type for the level4 tree items. Contain an item() of type $.ig.Level.
$.ig.MetadataTreeItemType.prototype.level5 = 11;
Item type for the level5 tree items. Contain an item() of type $.ig.Level.