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 9090 MDX2JSONSource : "http://localhost:57772/SAMPLES" , // MDX2JSON server address
9191 basicMDX : typeof req === "object" ? req . basicMDX : req
9292 }
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 "^"
9495 //, 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
9798 } ;
9899
99100 if ( req . DrillDownExpression ) { // set custom DrillDown on variant 10
Original file line number Diff line number Diff line change 1111
1212 <Class name =" DeepSee.LightPivotTable" >
1313 <Super >%DeepSee.Component.Portlet.abstractPortlet</Super >
14- <TimeChanged >63531,76537.988508 </TimeChanged >
14+ <TimeChanged >63531,81826.837798 </TimeChanged >
1515 <TimeCreated >63515,61322.546099</TimeCreated >
1616
1717 <Parameter name =" INCLUDEFILES" >
105105 <ClientMethod >1</ClientMethod >
106106 <Implementation ><![CDATA[
107107 var container = document.getElementById(this.id),
108+ controller,
108109 source,
109110 setup,
110111 _ = this,
151152
152153 setTimeout(function() { // onCreate fired when scripts are ready, but this.parent is missed.
153154
155+ controller = _.getConnectedController();
156+
154157 // !ultra-bydlocode (get the widget object)
155158 while (widget["parent"]) {
156159 widget = widget["parent"];
171174 }
172175 }
173176 //console.log(info);
174- //console.log(AA = _.getConnectedController());
175177 setup = {
176178 container: container,
177179 dataSource: {
180182 basicMDX: info["mdx"]
181183 }
182184 }
185+ if (controller && controller["data"] && controller["data"]["rowCaptions"] && typeof controller["data"]["rowCaptions"][0] === "string") setup.caption = controller["data"]["rowCaptions"][0];
183186 if (info["drillDownDataSource"]) setup["drillDownTarget"] = info["drillDownDataSource"];
184187 setup["showSummary"] = !!parseInt(container.getAttribute("show-summary"));
185188
Original file line number Diff line number Diff line change @@ -165,8 +165,6 @@ DataController.prototype.resetRawData = function () {
165165 if ( data . dimensions [ 0 ] . length ) dim0raw ( rd0 , data . dimensions [ 0 ] ) ;
166166 if ( data . dimensions [ 1 ] . length ) dim1raw ( rd1 , data . dimensions [ 1 ] ) ;
167167
168- console . log ( rd0 , rd1 ) ;
169-
170168 var xw = ( rd0 [ 0 ] || [ ] ) . length ,
171169 yh = rd1 . length || data . info . rowCount || 0 ,
172170 xh = rd0 . length || data . info . colCount || 0 ,
@@ -181,7 +179,9 @@ DataController.prototype.resetRawData = function () {
181179 rawData [ y ] [ x ] = {
182180 group : 1 ,
183181 isCaption : true ,
184- value : ( data [ "info" ] || { } ) [ "cubeName" ] || ""
182+ value : this . controller . CONFIG [ "caption" ]
183+ || ( data [ "info" ] || { } ) [ "cubeName" ]
184+ || ""
185185 } ;
186186 } else {
187187 rawData [ y ] [ x ] = rd1 [ y - xh ] [ x ] ;
You can’t perform that action at this time.
0 commit comments