|
11 | 11 |
|
12 | 12 | <Class name="DeepSee.LightPivotTable">
|
13 | 13 | <Super>%DeepSee.Component.Portlet.abstractPortlet</Super>
|
14 |
| -<TimeChanged>63575,80028.98656</TimeChanged> |
| 14 | +<TimeChanged>63578,5208.234472</TimeChanged> |
15 | 15 | <TimeCreated>63515,61322.546099</TimeCreated>
|
16 | 16 |
|
17 | 17 | <Parameter name="INCLUDEFILES">
|
|
289 | 289 | <Language>javascript</Language>
|
290 | 290 | <ClientMethod>1</ClientMethod>
|
291 | 291 | <Implementation><![CDATA[
|
| 292 | + var container = document.getElementById(this.id), |
| 293 | + controller = this.getConnectedController(); |
| 294 | +
|
292 | 295 | if (!this.LightPivotTable) return;
|
293 | 296 |
|
294 |
| - //if (location.pathname.indexOf("DeepSee") > -1) { |
295 |
| - // window.open( |
296 |
| - // location.href.replace(/(%|_)(25)?DeepSee.*/, "_DeepSee.UI.MDXExcel.zen?MDX=") |
297 |
| - // + encodeURIComponent(this.LightPivotTable.getActualMDX()) |
298 |
| - // ); |
299 |
| - // return; |
300 |
| - //} |
| 297 | + if (location.pathname.indexOf("DeepSee") > -1) { |
| 298 | +
|
| 299 | + var controls = this.id.replace(/\/.*/, "") + "/control/", |
| 300 | + i = 1, n, |
| 301 | + filter = document.getElementById(controls + i), |
| 302 | +
|
| 303 | + filterNames = [], |
| 304 | + filterValues = []; |
| 305 | +
|
| 306 | + do { |
| 307 | + if ((n = (filter.getElementsByTagName("input")[0] || {}).name) === "$V_applyFilter" || n === "$V_setFilter") { |
| 308 | + filterNames.push((filter.parentNode.getElementsByClassName("zenLabel")[0] || {}).innerText || ""); |
| 309 | + filterValues.push("SET"); |
| 310 | + } |
| 311 | + filter = document.getElementById(controls + (++i)); |
| 312 | + } while (filter); |
| 313 | +
|
| 314 | + window.open( |
| 315 | + location.href.replace(/(%|_)(25)?DeepSee.*/, "_DeepSee.UI.MDXExcel.zen?MDX=") |
| 316 | + + encodeURIComponent(this.LightPivotTable.getActualMDX()) |
| 317 | + + "&ROWTOTALAGG=sum" |
| 318 | + + "&COLUMNTOTALAGG=sum" |
| 319 | + + "&FILTERNAMES=" + encodeURIComponent(filterNames.join("\n")) |
| 320 | + + "&FILTERVALUES=" + encodeURIComponent(filterValues.join("\n")) |
| 321 | + + "&FILTERLABELS=" + encodeURIComponent(filterNames.join("\n")) |
| 322 | + + "&TITLE=Exported data" |
| 323 | + + "&SUBTITLE=" |
| 324 | + + "&CSPSHARE=1" |
| 325 | + + "&CSPCHD=" + container.getElementsByTagName("div")[0].getAttribute("session") |
| 326 | + ); |
| 327 | + return; |
| 328 | + } |
301 | 329 |
|
302 | 330 | var link = document.createElement("a"),
|
303 | 331 | csvData = [], preservedGroups = {},
|
|
353 | 381 | }
|
354 | 382 |
|
355 | 383 | &html<
|
356 |
| - <div maxHeaderWidth="#(..MaxHeaderWidth)#" listingColumnMinWidth="#(..ListingColumnMinWidth)#" fixTotals="#(..FixTotals)#" pagination="#(..Pagination)#" export-csv="#(..ExportCSV)#" data-source="#(..DataSource)#" show-summary="#(..ShowSummary)#" class="lpt-container" style="position: absolute; left: 0; bottom: 0; width: 100%; height: 100%;"> |
| 384 | + <div session="#(%session.CSPSessionCookie)#" maxHeaderWidth="#(..MaxHeaderWidth)#" listingColumnMinWidth="#(..ListingColumnMinWidth)#" fixTotals="#(..FixTotals)#" pagination="#(..Pagination)#" export-csv="#(..ExportCSV)#" data-source="#(..DataSource)#" show-summary="#(..ShowSummary)#" class="lpt-container" style="position: absolute; left: 0; bottom: 0; width: 100%; height: 100%;"> |
357 | 385 |
|
358 | 386 | </div>
|
359 | 387 | >
|
|
0 commit comments