I am totally new to KendoUI. I have configured Mondrian as XMLA server and it is running at url: "http://localhost:8080/mondrian/xmla". I need only the pivotgrid component to be rendered in my Grails view page.
I have my html body as follows
<body>
<div class="body">
<div id="example">
<div id="pivotgrid" style=""></div>
<script>
$(document).ready(function () {
var pivotgrid = $("#pivotgrid").kendoPivotGrid({
filterable: true,
columnWidth: 100,
height: 580,
dataSource: {
type: "xmla",
columns: [{ name: "[Employees].[All Employees]", expand: true }],
rows: [{ name: "[Time].[All Time]", expand: true }],
measures: ["[Measures].[Org Salary]"],
transport: {
connection: {
catalog: "FoodMart",
cube: "HR"
},
read: "http://localhost:8080/mondrian/xmla",
parameterMap: function(options, type) {
var query = kendo.data.transports.xmla.fn.options.parameterMap(options, type);
console.log("query"+query);
//modify the query here if needed
return query;
}
},
schema: {
type: "xmla"
},
error: function (e) {
alert("error: " + kendo.stringify(e.errors[0]));
}
}
}).data("kendoPivotGrid");
});
</script>
</div>
</div>
</body>
I get error as follows
error: {"faultstring":"XMLA MDX parse failed","faultcode":"SOAP-ENV:Client.00HSBD01"}
Help would be really appreciated.