File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 90
90
MDX2JSONSource : "http://localhost:57772/SAMPLES" , // MDX2JSON server address
91
91
basicMDX : typeof req === "object" ? req . basicMDX : req
92
92
}
93
- //, DrillDownExpression; "<spec>" - drillDown expression split by "^"
93
+ //, caption: "My table" // if set, table basi caption will be replaced by this text
94
+ //, DrillDownExpression: "<spec>" // @deprecated drillDown expression split by "^"
94
95
//, showSummary: true // show summary by columns
95
- //, formatNumbers: "#,###.##"
96
- //, drillDownTarget: "<dashboard name>" - undocumented, deepSee only
96
+ //, formatNumbers: "#,###.##" // @deprecated
97
+ //, drillDownTarget: "<dashboard name>" // undocumented, deepSee only
97
98
} ;
98
99
99
100
if ( req . DrillDownExpression ) { // set custom DrillDown on variant 10
Original file line number Diff line number Diff line change 11
11
12
12
<Class name =" DeepSee.LightPivotTable" >
13
13
<Super >%DeepSee.Component.Portlet.abstractPortlet</Super >
14
- <TimeChanged >63531,76537.988508 </TimeChanged >
14
+ <TimeChanged >63531,81826.837798 </TimeChanged >
15
15
<TimeCreated >63515,61322.546099</TimeCreated >
16
16
17
17
<Parameter name =" INCLUDEFILES" >
105
105
<ClientMethod >1</ClientMethod >
106
106
<Implementation ><![CDATA[
107
107
var container = document.getElementById(this.id),
108
+ controller,
108
109
source,
109
110
setup,
110
111
_ = this,
151
152
152
153
setTimeout(function() { // onCreate fired when scripts are ready, but this.parent is missed.
153
154
155
+ controller = _.getConnectedController();
156
+
154
157
// !ultra-bydlocode (get the widget object)
155
158
while (widget["parent"]) {
156
159
widget = widget["parent"];
171
174
}
172
175
}
173
176
//console.log(info);
174
- //console.log(AA = _.getConnectedController());
175
177
setup = {
176
178
container: container,
177
179
dataSource: {
180
182
basicMDX: info["mdx"]
181
183
}
182
184
}
185
+ if (controller && controller["data"] && controller["data"]["rowCaptions"] && typeof controller["data"]["rowCaptions"][0] === "string") setup.caption = controller["data"]["rowCaptions"][0];
183
186
if (info["drillDownDataSource"]) setup["drillDownTarget"] = info["drillDownDataSource"];
184
187
setup["showSummary"] = !!parseInt(container.getAttribute("show-summary"));
185
188
Original file line number Diff line number Diff line change @@ -165,8 +165,6 @@ DataController.prototype.resetRawData = function () {
165
165
if ( data . dimensions [ 0 ] . length ) dim0raw ( rd0 , data . dimensions [ 0 ] ) ;
166
166
if ( data . dimensions [ 1 ] . length ) dim1raw ( rd1 , data . dimensions [ 1 ] ) ;
167
167
168
- console . log ( rd0 , rd1 ) ;
169
-
170
168
var xw = ( rd0 [ 0 ] || [ ] ) . length ,
171
169
yh = rd1 . length || data . info . rowCount || 0 ,
172
170
xh = rd0 . length || data . info . colCount || 0 ,
@@ -181,7 +179,9 @@ DataController.prototype.resetRawData = function () {
181
179
rawData [ y ] [ x ] = {
182
180
group : 1 ,
183
181
isCaption : true ,
184
- value : ( data [ "info" ] || { } ) [ "cubeName" ] || ""
182
+ value : this . controller . CONFIG [ "caption" ]
183
+ || ( data [ "info" ] || { } ) [ "cubeName" ]
184
+ || ""
185
185
} ;
186
186
} else {
187
187
rawData [ y ] [ x ] = rd1 [ y - xh ] [ x ] ;
You can’t perform that action at this time.
0 commit comments