-
-
10-321 数据小白Lv1
发表于2023-12-19 16:37
悬赏1
未解决
楼主
按钮万能式内容如下:
debugger;
var bbq = g_rptpage.calcParam.getValueByName("@BBQJ") + "01";
//第一个存储过程的回调
function onfinish1(q){
var result = q.getResponseJSON().data;
//EUI.hideWaitDialog();
if(result == "true"){
debugger;
EUI. showMessage("取数成功!");
}else{
EUI.hideWaitDialog();
EUI. showMessage("取数失败!");
}
}
//第一个存储过程
function execPro1(){
var prosql1 = "call PKG_SJYC.f_qjtsjycsjdg(to_date('"+bbq+"','yyyy-mm-dd'),?)";
EUI.post({
url:EUI.getContextPath(window)+"execProcedure.do",
data: {ds:'dw', proSql:prosql1},
callback
nfinish1 ,
error:function(e){
EUI.hideWaitDialog();
EUI.showMessage("请求取数失败!");
}
})
}
execPro1();
报错内容如下:
Failed to load resource: the server responded with a status of 404 ();
大概意思就是找不到对应url,url:EUI.getContextPath(window)+"execProcedure.do"。是因为我们的报表缺少什么东西吗?
debugger;
var bbq = g_rptpage.calcParam.getValueByName("@BBQJ") + "01";
//第一个存储过程的回调
function onfinish1(q){
var result = q.getResponseJSON().data;
//EUI.hideWaitDialog();
if(result == "true"){
debugger;
EUI. showMessage("取数成功!");
}else{
EUI.hideWaitDialog();
EUI. showMessage("取数失败!");
}
}
//第一个存储过程
function execPro1(){
var prosql1 = "call PKG_SJYC.f_qjtsjycsjdg(to_date('"+bbq+"','yyyy-mm-dd'),?)";
EUI.post({
url:EUI.getContextPath(window)+"execProcedure.do",
data: {ds:'dw', proSql:prosql1},
callback

error:function(e){
EUI.hideWaitDialog();
EUI.showMessage("请求取数失败!");
}
})
}
execPro1();
报错内容如下:
Failed to load resource: the server responded with a status of 404 ();
大概意思就是找不到对应url,url:EUI.getContextPath(window)+"execProcedure.do"。是因为我们的报表缺少什么东西吗?
5个回答
需要在报表客户端脚本中配置,参考这个看看:
https://bbs.esensoft.com/thread-141457-1-1.html
https://bbs.esensoft.com/thread-133628-1-1.html
chestnut 发表于 2023-12-19 17:40
需要在报表客户端脚本中配置,参考这个看看:
https://bbs.esensoft.com/thread-141457-1-1.html
https://b ...
1:定义存储过程,并在BI数据库管理里执行存储过程是否成功。
drop procedure if exists sp2 ;
create procedure sp2(out p int)
begin
select max(id) into p from test ;
end
;
示例为mysql存储过程写法
存储过程在数据库测试中是成功的,“BI数据库管理里执行存储过程是否成功。” 这个我如何测试呢
chestnut 发表于 2023-12-20 11:53
数据源-连接池管理,对应数据源-查看库表,在数据库管理中执行
数据源-连接池管理,对应数据源-查看库表,在数据库管理中执行
这里面测试可以正常执行,但是配置脚本和万能式之后点击没有任何反应也没有报错。

