Hitachi Vantara Pentaho Community Forums
Results 1 to 1 of 1

Thread: Add named set to query using olap4j

  1. #1
    Join Date
    Mar 2011
    Posts
    11

    Default Add named set to query using olap4j

    Hi.

    I am making a xmla connection to mondrian using olap4j. I need to generate and execute queries dynamically, for which I am using the Query and QueryDimension class in olap4j. I am able to generate a query with dimensions and measures successfully. However, am not able to add Named Set objects to the query. Please let me know if and how this can be achieved. -

    Example:
    Query myQuery = new Query("mycube", mycube);
    QueryDimension dimension= myQuery.getDimension("myDimension"); // This works

    But
    NamedList<NamedSet> set=mycube.getSets();
    NamedSet mySet=set.get(0);
    QueryDimension group = myQuery.getDimension(top.getName()); // This doesn't work

    How can I add sets to my query?

    Thanks, Pranjala
    Last edited by Pranjala; 11-24-2011 at 10:19 AM.

Tags for this Thread

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.