Skip to content

Commit 76c735c

Browse files
"showRowCaption" pivot setting apply
1 parent 2cfa0f9 commit 76c735c

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "LightPivotTable",
33
"author": "ZitRo",
4-
"version": "1.2.1",
4+
"version": "1.2.2",
55
"description": "A lightweight pivot table for MDX2JSON source for InterSystems Cache",
66
"main": "test/testServer.js",
77
"repository": {

source/js/DataController.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -432,10 +432,13 @@ DataController.prototype.resetRawData = function () {
432432
rawData[y][x] = {
433433
group: 1,
434434
isCaption: true,
435-
value: this.controller.CONFIG["caption"]
436-
|| dimCaption
437-
|| (data["info"] || {})["cubeName"]
438-
|| ""
435+
value: lp.getPivotProperty(["showRowCaption"]) !== false
436+
? (
437+
this.controller.CONFIG["caption"]
438+
|| dimCaption
439+
|| (data["info"] || {})["cubeName"]
440+
|| ""
441+
) : ""
439442
};
440443
applyHeaderStyle(rawData[y][x], false);
441444
} else {

0 commit comments

Comments
 (0)