Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.41 KB

README.md

File metadata and controls

36 lines (31 loc) · 1.41 KB

Overview

olap4js is intended to be a common set of JS objects that can run on multiple clients and with multiple OLAP backends

Host Environments

Browser: Main testing evnironment at the moment

Xmla: The XMLA implementation has full metadata and query execution

Saiku: The Saiku implementation has a metadata discovery implementation and basic query processing

Node.js

The basic olap connection is working, but not Xmla

Installation Linux

  • Install the plugin
$ cd /home/pentaho/pentaho/server/biserver-ee/pentaho-solutions/system
$ git clone https://github.com/agrohe21/olap4js.git

Quick Example

var olapConn = new olapXmla.Connection(), cubes, sw_meta;
  //get all cubes for active connection
  olapConn.getCubes(function(cubes){
    //filter cubes array down to only CATALOG_NAME = SteelWheels
    var sw = filterProperty.apply(cubes, [{type:'equal', property:'CATALOG_NAME', value:'SteelWheels'}]);
    //get the dims, hierarchies, levels and measures for the cube
    sw_meta = sw.getMetadata();
    //simply dump it out to Page DOM
    document.body.appendChild(prettyPrint(sw_meta, { maxDepth:3 } ));
  });