Ignite UI API Reference

ig.Catalog

ig.Catalog_image
Represents the catalog metadata.

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"            
            });
			
            dataSource.initialize().done(function(metadataTree) {
                var catalog = dataSource.catalog();
                var catalogs = dataSource.catalogs();
            
                dataSource.setCatalog(catalogs[0].uniqueName())
                    .done(function (metadataTree){
                        // metadata tree is now updated to reflect selected catalog structure		
                    });
            });
        });
    </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.
  • caption

    .caption( value:object );
    Return Type:
    string
    Return Type Description:
    The caption of the catalog.

    Returns the caption of the catalog used when displaying the name of the catalog to the user.

    • value
    • Type:object
  • description

    .description( value:object );
    Return Type:
    string
    Return Type Description:
    The description of the catalog.

    Returns the description of the catalog which is a human-readable description of the catalog.

    • value
    • Type:object
  • name

    .name( value:object );
    Return Type:
    string
    Return Type Description:
    The name of the catalog.

    Returns the name of the catalog.

    • value
    • Type:object
  • uniqueName

    .uniqueName( value:object );
    Return Type:
    string
    Return Type Description:
    The unique name of the catalog.

    Returns the unique name of the catalog.

    • value
    • Type:object

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

#