-
-
wsn123 数据达人Lv4
发表于2021-12-10 14:37
悬赏1
已解决
楼主
如图 这脚本怎么设置?没有示例啊,有没有什么文档可供参考,帮助文档写的不是很详细
最佳答案
wsn123 发表于 2021-12-10 16:33
就是单纯的取数页面啊,取数页面有个表格,属性有个钻取设置
这个设置对话框中默认有两个示例脚本可以参考:
- /**
- //示例1:浏览器新窗口显示酷屏
- //此处不带ip地址则默认就是本机ip或localhost
- var ay = encodeURIComponent("<#=self.value#>");
- var caption = encodeURIComponent("<#=self.caption#>");
- var rightcellvalue = encodeURIComponent("<#=self.rightcell.value#>");
- var url = EUI.getContextPath()+ "ebibase/showcoolrpt.do?resid=EANA$2$4$1$81d788de78844a5bb87dcdc12dd0c5ac$f134ccee85e94fada8ebbf65dc8ca30e&@ay="+ay+"&@caption="+caption+"&@rightcellvalue="+rightcellvalue+"&calcnow=true&encode=true"
- window.open(url);
- */
- /**
- //示例2:弹出浮动窗口显示酷屏
- var dlg = getFixFloatDlg();
- if (dlg.isVisible()) {
- dlg.hide();
- } else {
- //此处不带ip地址则默认就是本机ip或localhost
- var ay = encodeURIComponent("<#=self.value#>");
- var caption = encodeURIComponent("<#=self.caption#>");
- var rightcellvalue = encodeURIComponent("<#=self.rightcell.value#>");
- var url = EUI.getContextPath()+"ebibase/showcoolrpt.do?resid=EANA$2$4$1$81d788de78844a5bb87dcdc12dd0c5ac$f134ccee85e94fada8ebbf65dc8ca30e&@ay="+ay+"&@caption="+caption+"&@rightcellvalue="+rightcellvalue+"&calcnow=true&encode=true"
- dlg.setContentSrc(url); //设置url
- dlg.setTitle("<#=report.caption#>"); //设置标题
- dlg.show();
- }
- */
3个回答
wsn123 发表于 2021-12-10 16:33
就是单纯的取数页面啊,取数页面有个表格,属性有个钻取设置
这个设置对话框中默认有两个示例脚本可以参考:
- /**
- //示例1:浏览器新窗口显示酷屏
- //此处不带ip地址则默认就是本机ip或localhost
- var ay = encodeURIComponent("<#=self.value#>");
- var caption = encodeURIComponent("<#=self.caption#>");
- var rightcellvalue = encodeURIComponent("<#=self.rightcell.value#>");
- var url = EUI.getContextPath()+ "ebibase/showcoolrpt.do?resid=EANA$2$4$1$81d788de78844a5bb87dcdc12dd0c5ac$f134ccee85e94fada8ebbf65dc8ca30e&@ay="+ay+"&@caption="+caption+"&@rightcellvalue="+rightcellvalue+"&calcnow=true&encode=true"
- window.open(url);
- */
- /**
- //示例2:弹出浮动窗口显示酷屏
- var dlg = getFixFloatDlg();
- if (dlg.isVisible()) {
- dlg.hide();
- } else {
- //此处不带ip地址则默认就是本机ip或localhost
- var ay = encodeURIComponent("<#=self.value#>");
- var caption = encodeURIComponent("<#=self.caption#>");
- var rightcellvalue = encodeURIComponent("<#=self.rightcell.value#>");
- var url = EUI.getContextPath()+"ebibase/showcoolrpt.do?resid=EANA$2$4$1$81d788de78844a5bb87dcdc12dd0c5ac$f134ccee85e94fada8ebbf65dc8ca30e&@ay="+ay+"&@caption="+caption+"&@rightcellvalue="+rightcellvalue+"&calcnow=true&encode=true"
- dlg.setContentSrc(url); //设置url
- dlg.setTitle("<#=report.caption#>"); //设置标题
- dlg.show();
- }
- */


