File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
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.4.12 " ,
4
+ "version" : " 1.4.13 " ,
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 @@ -98,6 +98,7 @@ DataController.prototype.setData = function (data) {
98
98
this . _dataStack [ this . _dataStack . length - 1 ] . data = data ;
99
99
//this.data = data;
100
100
this . setLeftHeaderColumnsNumber ( data ) ; // required in resetDimensionProps()
101
+ this . pivotDataProcess ( data ) ;
101
102
this . resetDimensionProps ( ) ;
102
103
this . resetConditionalFormatting ( ) ;
103
104
this . resetRawData ( ) ;
@@ -116,6 +117,20 @@ DataController.prototype.setData = function (data) {
116
117
117
118
} ;
118
119
120
+ /**
121
+ * Function that process pivot data.
122
+ * @param [data]
123
+ */
124
+ DataController . prototype . pivotDataProcess = function ( data ) {
125
+
126
+ var totals = this . controller . getPivotProperty ( [ "columnTotals" ] ) ;
127
+
128
+ if ( typeof totals === "boolean" ) {
129
+ this . controller . CONFIG [ "showSummary" ] = totals ;
130
+ }
131
+
132
+ } ;
133
+
119
134
/**
120
135
* Handle drillThrough on current level.
121
136
* If handler returns boolean false, drillThrough won't be performed.
You can’t perform that action at this time.
0 commit comments