ig.OlapResultAxis

ig.OlapResultAxis_image
Represents an axis within $.ig.OlapResult.

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();
            
                // get column and row result axes of evaluated result
                var columnsAxis = result.axes().item(0);
                var rowsAxis = result.axes().item(1);
            });
        });            
    </script>
</head>
<body>
</body>
</html>    
    

Related Topics

Dependencies

jquery-1.9.1.js
infragistics.util.js
  • options

    Type:
    object
    Default:
    {}

    • tuples

      Type:
      array
      Default:
      null
      Elements Type:

      Optional="false" array of $.ig.OlapResultTuple objects which form the axis.

    • tupleSize

      Type:
      number
      Default:
      null

      Optional="false" the count of the $.ig.OlapResultAxisMember objects of each tuple.

The current widget has no events.
  • tuples

    .tuples( );
    Return Type:
    array
    Return Type Description:
    An array of $.ig.OlapResultTuple objects.

    Returns an array of $.ig.OlapResultTuple objects which form the axis.

  • tupleSize

    .tupleSize( );
    Return Type:
    number
    Return Type Description:
    The count of the $.ig.OlapResultAxisMember objects of each tuple.

    Returns the count of the $.ig.OlapResultAxisMember objects of each tuple.

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