File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " LightPivotTable" ,
33 "author" : " ZitRo" ,
4- "version" : " 1.6.9 " ,
4+ "version" : " 1.6.11 " ,
55 "description" : " A lightweight pivot table for MDX2JSON source for InterSystems Cache" ,
66 "main" : " test/testServer.js" ,
77 "repository" : {
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ DataController.prototype.setData = function (data) {
119119 */
120120DataController . prototype . pivotDataProcess = function ( data ) {
121121
122- var totals = this . controller . getPivotProperty ( [ "columnTotals " ] ) ;
122+ var totals = this . controller . getPivotProperty ( [ "rowTotals " ] ) ;
123123
124124 if ( typeof totals === "boolean" ) {
125125 this . controller . CONFIG [ "showSummary" ] = totals ;
Original file line number Diff line number Diff line change @@ -222,9 +222,16 @@ DataSource.prototype.getCurrentData = function (callback) {
222222
223223 } ) ( data ) ) ;
224224 } 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+ }
225232 callback ( _ . _convert ( data ) ) ;
226233 } else {
227- callback ( { error : "Unrecognised MDX: " + mdx || true } ) ;
234+ callback ( { error : "Unrecognised MDX type : " + mdx || true } ) ;
228235 }
229236
230237 } ;
You can’t perform that action at this time.
0 commit comments