Ignite UI API Reference
ig.OlapResultAxisMember
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); // iterate through column axis tuples collection var columnTuples = columnsAxis.tuples(); for (var i = 0; i < columnsAxis.tuples().count(); i++){ var tuple = columnsAxis.tuples().item(i); // iterate through tuples' members collection for (var j = 0; j < tuple.members().count(); j++){ var axisMember = tuple.members().item(j); } } }); }); </script> </head> <body> </body> </html>
Related Topics
Dependencies
-
caption
- .caption( value:object );
- Return Type:
- string
- Return Type Description:
- The caption of the axis member.
Returns the caption of the axis member used when displaying the name of the axis member to the user.
- value
- Type:object
-
childCount
- .childCount( value:object );
- Return Type:
- number
- Return Type Description:
- The count of children members this member has.
Returns the count of children members this member has.
- value
- Type:object
-
displayInfo
- .displayInfo( value:object );
- Return Type:
- number
- Return Type Description:
- A bitmap of the information projected by childCount, drilledDown and parentSameAsPrev properties.
A bitmap of the information projected by childCount, drilledDown and parentSameAsPrev properties.
- value
- Type:object
-
drilledDown
- .drilledDown( value:object );
- Return Type:
- bool
- Return Type Description:
- A value that indicates whether at least one child of this member appears on the axis, immediately following all occurrences of that member.
Returns a value that indicates whether at least one child of this member appears on the axis, immediately following all occurrences of that member. This can be used by applications to display a "+" or a "-" next to the member.
- value
- Type:object
-
hierarchyUniqueName
- .hierarchyUniqueName( value:object );
- Return Type:
- string
- Return Type Description:
- The unique name of the hierarchy that contains the level.
Returns the unique name of the hierarchy that contains the level.
- value
- Type:object
-
levelNumber
- .levelNumber( value:object );
- Return Type:
- number
- Return Type Description:
- The distance of member parent level from the root of the level. Root level is zero (0).
Returns the distance of member parent level from the root of the level. Root level is zero (0).
- value
- Type:object
-
levelUniqueName
- .levelUniqueName( value:object );
- Return Type:
- string
- Return Type Description:
- The unique name of the level this member belongs to.
Returns the unique name of the level this member belongs to.
- value
- Type:object
-
parentSameAsPrev
- .parentSameAsPrev( value:object );
- Return Type:
- bool
- Return Type Description:
- A value that indicates whether the parent of this member is the same as the parent of the member preceding all occurrences of the current member.
Returns a value that indicates whether the parent of this member is the same as the parent of the member preceding all occurrences of the current member.
- value
- Type:object
-
properties
- .properties( value:object );
- Return Type:
- object
- Return Type Description:
- A key value map of the cell's properties.
Returns a key value map of the members' properties. By default only 'PARENT_UNIQUE_NAME' and 'CHILDREN_CARDINALITY' properties are available.
- value
- Type:object
-
uniqueName
- .uniqueName( value:object );
- Return Type:
- string
- Return Type Description:
- The unique name of the axis member.
Returns the unique name of the axis member.
- value
- Type:object