ig.OlapMetadataTreeItem

ig.OlapMetadataTreeItem_image
Represents a node item in the metadata tree. It is different from the actual item that the node displays as the OLAP metadata is not hierarchicaly stored. Some nodes do not have an OLAP metadata item and are just for presentation purposes.

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

jquery-1.9.1.js
infragistics.util.js

Copyright © 1996 - 2025 Infragistics, Inc. All rights reserved.