假设决策报表里有一个网页框控件,控件名为rHIframe0;同时有三个按钮控件,分别给按钮控件添加下面的点击事件:
3.1 setValue(String)
设置并刷新网页框控件的地址(保留原参数)
1)模板路径
var Widget = this.options.form.getWidgetByName('rHIframe0');
Widget.setValue("${servletURL}?reportlet=GettingStarted.cpt");
2)网络路径
var Widget = this.options.form.getWidgetByName('rHIframe0');
Widget.setValue("http://localhost:8075/WebReport/ReportServer?reportlet=GettingStarted.cpt");
3.2 reload()
重新刷新网页框
var Widget = this.options.form.getWidgetByName('rHIframe0');
Widget.reload();
3.3 loadUrl(String)
加载指定的url链接地址
1)模板路径
var Widget = this.options.form.getWidgetByName('rHIframe0');
Widget.loadUrl("${servletURL}?reportlet=GettingStarted.cpt");
2)网络路径
var Widget = this.options.form.getWidgetByName('rHIframe0');
Widget.loadUrl("http://localhost:8075/WebReport/ReportServer?reportlet=GettingStarted.cpt");