Hitachi Vantara Pentaho Community Forums
Results 1 to 3 of 3

Thread: Get the current cube

  1. #1
    Join Date
    Jan 2008
    Posts
    9

    Default Get the current cube

    Hi,

    I'm looking for a way to get the current cube used in a result.
    I succeed to get the list of the cubes presents in my mondrian schema, I succeed to get the axis and the slicer of a result, but I didn't find how to get an instance of the current cube.

    Has anyone a solution or an advise?
    Thanks in advance,

    Ainian

  2. #2
    Join Date
    Jan 2008
    Posts
    9

    Default

    I have a solution to get the current cube but I'm not sure that is the best way.

    I take the current MDX query and I parse it to obtain the name of the cube. Then I look for the current cube in the cubes list (retuned by schema.getCubes() )
    using a test on the names.

    If anyone have a other solution, I'm interesting...
    Ainian

  3. #3
    Join Date
    Jun 2007
    Posts
    8

    Default

    Hi Ainian,

    Can you tell me how could you get the axis and the slicer of a result?

    Thanks in advance,
    LMR

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.