第一步,获取树状过滤的值,设为参数
var sels = 树状过滤1.getSelectedObjects();
var filter = new Array();
var subFilter = new Array();
var thiFilter = new Array();
if(sels.length > 0){
for(var i = 0; i < sels.length; i++) {
for(var j= 0; j < sels[i.length; j++) {
if(j == 0){
filter[i]=sels[i][j
}
else if(j==1){
subFilter[i]=sels[i][j
}
else {
thiFilter[i]=sels[i][j
}
}
}
}
param["firstFilter"]=filter
param["secondFliter"]=subFilter
param["thirdFilter"]=thiFilter
第二步:
一个报告中在不同源的表格设置过滤器引用参数
|