mondrian配置XMLA的例子

This sample is the default features sample which querying Sales Cube from XMLA provider using JPivot interface.  

Configuration

Prerequisites Articles
File Configuration
Open and edit  xmla.jsp  file  - which should be located in your [TOMCAT_HOME]/webapps/mondrian/WEB-INF/queries folder - with your favorite text editor, and edit <jp:xmlaQuery> with these following configurations :

xmla.jsp
<jp:xmlaQuery id="query01"
    uri=" http://localhost:8080/mondrian/xmla "
    dataSource=" Provider=Mondrian;DataSource=MySQLTest; "
    catalog=" FoodMart ">
select
  {[Measures].[Unit Sales], [Measures].[Store Cost], [Measures].[Store Sales]} on columns,
  {([Promotion Media].[All Media], [Product].[All Products])} ON rows
from Sales
where ([Time].[1997])
</jp:xmlaQuery>


Note : [TOMCAT_HOME] is the folder where your Apache Tomcat installed. For example : C:\apache-tomcat-6.0.16
Testing
Open your Mondrian web application and click on the secondsample from the index page (JPivot pivot table by XMLA). You should see an OLAP data table with a JPivot toolbar. Drill through some of the dimension level nodes.

For example, my Mondrian web application is located at   http://localhost:8080/mondrian  and my JPivot Pivot Table sample url is http://localhost:8080/mondrian/testpage.jsp?query=xmla. Screenshot below shows the page that have been drillthrough at some nodes.

Author's Note : Known Issue
This sample is working well with JDK 1.5. We encounter unresolved errors when using JDK 1.6 installed in our system. You can find the issue  here .

Solutions for this problem :

Still Getting Errors ?


If you already following all the instructions and still got some errors or you have other issues that has to do with other database sources then you can post your problem to our Mondrian user group at   http://groups.google.com/group/phi-mondrian-olap. Or you can send a blank email to   phi-mondrian-olap-subscribe@googlegroups.com  to join the group.   

Note that you must get approval first before you can post.


Mondrian Training

For those of you  in Indonesia we have a regular training on OLAP and data warehousing subject using Pentaho Data Integration and Mondrian.  

If you want to enroll for the session please feel the form at   http://pentaho.phi-integration.com/pendaftaran-training  and we will send you the training schedule.

And for those who like to have a remote training instead using Webex please contact us by email to   support@phi-integration.com.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值