Skip to content

Commit

Permalink
Pick up "Display measure headers" option
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitaeverywhere committed Nov 22, 2017
1 parent d98bb01 commit e8e84dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "LightPivotTable",
"author": "ZitRo",
"version": "1.8.6",
"version": "1.8.7",
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
"main": "test/testServer.js",
"repository": {
Expand Down
4 changes: 3 additions & 1 deletion source/js/DataController.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ DataController.prototype.resetRawData = function () {
}

var rd0 = [], rd1 = [], groupNum = 2, rawData = [];
var MEASURES_HIDDEN = _.controller.CONFIG["pivotProperties"]
&& _.controller.CONFIG["pivotProperties"]["hideMeasures"] === 2;

var transpose = function (a) {
return Object.keys(a[0]).map(function (c) {
Expand Down Expand Up @@ -483,7 +485,7 @@ DataController.prototype.resetRawData = function () {
value: c[i].caption || ""
};
applyHeaderStyle(obj, hor);
a.push(arr.concat(obj));
a.push(c[i]["type"] === "msr" && MEASURES_HIDDEN ? arr : arr.concat(obj));
groupNum++;
}
}
Expand Down

0 comments on commit e8e84dd

Please sign in to comment.