-
lopi 数据小白Lv1
发表于2024-5-11 17:33
悬赏1
已解决
var value;
var paramWidget = g_rptpage.calcParam.getParamByName("@njy");
if (!!paramWidget){
value = paramWidget.getValue();
}else{
value = g_rptpage.calcParam.calcparams.getValue("@njy");
}
if(value =='年'){
_zcalcn([['Widget1','HHH7','@rq=<#=@year#>']]);
} else if (value == '季') {
_zcalcn([['Widget1','HHH7','@rq=<#=@qu#>']]);
} else {
_zcalcn([['Widget1','HHH7','@rq=<#=@month#>']]);
}
1个回答
计算按钮万能式代码
var value;
var paramWidget = g_rptpage.calcParam.getParamByName("@njy");
if (!!paramWidget){
value = paramWidget.getValue();
}else{
value = g_rptpage.calcParam.calcparams.getValue("@njy");
}
if(value =='年'){
_zcalcn([['Widget1','HHH7','@rq=<#=@year#>']]);
} else if (value == '季') {
_zcalcn([['Widget1','HHH7','@rq=<#=@qu#>']]);
} else {
_zcalcn([['Widget1','HHH7','@rq=<#=@month#>']]);
}