File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed 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 >63606,42413.124862 </TimeChanged >
14
+ <TimeChanged >63699,75399.850452 </TimeChanged >
15
15
<TimeCreated >63515,61322.546099</TimeCreated >
16
16
17
17
<Parameter name =" INCLUDEFILES" >
129
129
for (var i in controller.filters) {
130
130
this.LightPivotTable.CONFIG["defaultFilterSpecs"].push(controller.filters[i].spec);
131
131
}
132
+ if (controller.contextFilterSpec) {
133
+ this.LightPivotTable.CONFIG["defaultFilterSpecs"].push(controller.contextFilterSpec);
134
+ }
132
135
133
136
this.LightPivotTable.refresh();
134
137
257
260
namespace: container.getAttribute("namespace")
258
261
}
259
262
}
263
+ if (controller.contextFilterSpec) {
264
+ defaultFilters.push(controller.contextFilterSpec);
265
+ }
260
266
if (defaultFilters.length) { setup["defaultFilterSpecs"] = defaultFilters; }
261
267
if (controller && controller["data"] && controller["data"]["rowCaptions"] && typeof controller["data"]["rowCaptions"][0] === "string") setup.caption = controller["data"]["rowCaptions"][0];
262
268
if (controller && controller["data"] && !setup.caption) setup.caption = controller["data"]["defaultCaption"] || "";
Original file line number Diff line number Diff line change @@ -133,6 +133,12 @@ MDXParser.prototype.mdxType = function (mdx) {
133
133
*/
134
134
MDXParser . prototype . applyFilter = function ( basicMDX , filterSpec ) {
135
135
136
+ var re = / \( ( ( [ ^ \) , ] ) + , ? ) + \) / ; // gathered filter
137
+
138
+ if ( re . test ( filterSpec ) ) {
139
+ return basicMDX + " %FILTER " + filterSpec . substr ( 1 , filterSpec . length - 2 ) . split ( "," ) . join ( " %FILTER " ) ;
140
+ }
141
+
136
142
return basicMDX + " %FILTER " + filterSpec ;
137
143
138
144
} ;
You can’t perform that action at this time.
0 commit comments