File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " LightPivotTable" ,
3
3
"author" : " ZitRo" ,
4
- "version" : " 1.6.9 " ,
4
+ "version" : " 1.6.11 " ,
5
5
"description" : " A lightweight pivot table for MDX2JSON source for InterSystems Cache" ,
6
6
"main" : " test/testServer.js" ,
7
7
"repository" : {
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ DataController.prototype.setData = function (data) {
119
119
*/
120
120
DataController . prototype . pivotDataProcess = function ( data ) {
121
121
122
- var totals = this . controller . getPivotProperty ( [ "columnTotals " ] ) ;
122
+ var totals = this . controller . getPivotProperty ( [ "rowTotals " ] ) ;
123
123
124
124
if ( typeof totals === "boolean" ) {
125
125
this . controller . CONFIG [ "showSummary" ] = totals ;
Original file line number Diff line number Diff line change @@ -222,9 +222,16 @@ DataSource.prototype.getCurrentData = function (callback) {
222
222
223
223
} ) ( data ) ) ;
224
224
} else if ( mdxType === "mdx" ) {
225
+ if ( ! data || ! data . Data || ! data . Cols
226
+ || ( ! data . Data . length && ! ( ( data . Cols [ 0 ] || { } ) . tuples || [ ] ) . length )
227
+ && ! ( ( data . Cols [ 1 ] || { } ) . tuples || [ ] ) . length ) {
228
+ return callback ( {
229
+ error : pivotLocale . get ( 4 )
230
+ } ) ;
231
+ }
225
232
callback ( _ . _convert ( data ) ) ;
226
233
} else {
227
- callback ( { error : "Unrecognised MDX: " + mdx || true } ) ;
234
+ callback ( { error : "Unrecognised MDX type : " + mdx || true } ) ;
228
235
}
229
236
230
237
} ;
You can’t perform that action at this time.
0 commit comments