Open GoogleCodeExporter opened 9 years ago
Thanks for your bug report, I appreciate it.
Can you post some code immediately before calling eachCell? In particular I'd
like to see what query caused it, and how you obtained the cellset.
Original comment by roland.bouman
on 26 Mar 2012 at 4:34
For testing purposes im using the foodmart db which comes with mondrian
//The query is as follows:
query = "SELECT [Measures].[Unit Sales] ON 0,
[Time].[1997].Children ON 1,
[Store].[USA].Children ON 2
FROM [Sales]";
//and with that query i do the following:
var datasource = getDataSourceInfo();
// initialize the properties object
var properties = {};
properties[Xmla.PROP_DATASOURCEINFO] = getDataSourceInfo();
properties[Xmla.PROP_CATALOG] = getCatalogName();
properties[Xmla.PROP_FORMAT] = "Multidimensional";
if ("Multidimensional" === Xmla.PROP_FORMAT_MULTIDIMENSIONAL ){
properties[Xmla.PROP_AXISFORMAT] = "TupleFormat";
}
// execute the query with the url and given properties
xmlaDataset= xmla.execute({
url: getUrl(),
statement: query,
properties: properties
});
// i get the cellset
var cellset = xmlaDataset.getCellset();
// then pop goes the weasel
//for each and every cell do the following
cellset.eachCell(function(cell){
// do something with the cell here
});
Hope this helps!
Original comment by yong.c...@incentro.com
on 27 Mar 2012 at 11:25
Thanks! this is a huge help. I will investigate and get back to you. Will try
to get it fixed during the weekend.
Original comment by roland.bouman
on 27 Mar 2012 at 11:32
Original comment by roland.bouman
on 27 Mar 2012 at 11:32
Original issue reported on code.google.com by
yong.c...@incentro.com
on 26 Mar 2012 at 4:15