0
|
snrtuemcLv8专家互助发布于2022-12-9 11:43
|
js决策报表块传参,给两个报表传递初始化的参数,js格式如下 _g().getWidgetByName('report3').gotoPage(1, { "参数名1": "参数值1", "参数名2": "'参数值2" }, 'T');
|
-
liuyunxia827729(提问者)
- 这个有报错,好像不太行
-
snrtuemc 回复 liuyunxia827729(提问者)
- 怎么会啊,我用很多次了,这个也是帆软标准js,怎么会报错,什么错误信息
-
liuyunxia827729(提问者)
- 这样实现的,可能当时写的时候没注意逗号分号
//把所有动态参数都设置为空值
var que1 = \'\';
var que11 = \'\';
var que111 = \'\';
var que2 = \'\';
var que22 = \'\';
var zuanqu1 = \'\';
var zuanqu2 = \'\';
var name = \'\';
//var field1 = _g().getWidgetByName(\'v_field\').getValue();
_g().getWidgetByName(\'report1\').gotoPage(1,
\"{que1:\'\" + que1 +
\"\' , que11 :\'\" + que11 +
\"\' ,que111 :\'\" + que111 +
\"\' ,que2 :\'\" + que2 +
\"\' ,que22 :\'\" + que22 +
\"\' ,zuanqu1 :\'\" + zuanqu1 +
\"\' ,zuanqu2 :\'\" + zuanqu2 +
\"\' ,name :\'\" + name +
\"\'}\", \"lazy\");
//传递给report1报表块
_g().getWidgetByName(\'report2\').gotoPage(1,
\"{que1:\'\" + que1 +
\"\' , que11 :\'\" + que11 +
\"\' ,que111 :\'\" + que111 +
\"\' ,que2 :\'\" + que2 +
\"\' ,que22 :\'\" + que22 +
\"\' ,zuanqu1 :\'\" + zuanqu1 +
\"\' ,zuanqu2 :\'\" + zuanqu2 +
\"\' ,name :\'\" + name +
\"\'}\", \"lazy\");
//传递给report2报表块
_g().getWidgetByName(\'report3\').gotoPage(1,
\"{que1:\'\" + que1 +
\"\' , que11 :\'\" + que11 +
\"\' ,que111 :\'\" + que111 +
\"\' ,que2 :\'\" + que2 +
\"\' ,que22 :\'\" + que22 +
\"\' ,zuanqu1 :\'\" + zuanqu1 +
\"\' ,zuanqu2 :\'\" + zuanqu2 +
\"\' ,name :\'\" + name +
\"\'}\", \"lazy\");
//传递给report3报表块
|
|