3

在此处输入图像描述

这是birt报告中超链接的设置

用于计算参数的脚本如下:

if (params["idContratto"].match(row["contract_number"].toString()) == null){
    if (params["idContratto"].value == "abc"){
        row["contract_number"].toString();
    }
    else{
        params["idContratto"].value + "," + row["contract_number"].toString();
    }
}
else{
    if (params["idContratto"].length == row["contract_number"].length){
        "";
    }
    else{
        temp = params["idContratto"];
        temp = temp.replace(row["contract_number"].toString(), "");
        if (params["idContratto"].indexOf(row["contract_number"].toString()) == 0){
            temp = temp.replace(",","");
        }
        else{
            if (params["idContratto"].split(",").length == 2){
                temp = temp.replace(",","");
            }
            else if (temp.length == params["idContratto"].indexOf(row["contract_number"].toString())){
                temp = temp.substring(0,temp.length-1);
            }
            else{
                temp= temp.replace(",,",",");
            }
        }
        temp;
    }
}

Drill -throughspagoBI 中 birt 报告中的功能。我在 spagoBI 工作室中使用钻取创建了一个 birt 报告,它在那里运行良好,同时将其部署在服务器上。它显示错误

-发生了错误。稍后重试。如果问题仍然存在,请联系系统管理员。

超链接上显示的网址是

"GET /SpagoBIBirtReportEngine/run?__report=%2FD%3A%2FAll-In-One-S‌​pagoBI-5.1.0_2101201‌​5%2Fbin%2FRevenueDet‌​ails.rptdesign&idCon‌​tratto=77&__overwrit‌​e=true HTTP/1.1" 404 687.

4

0 回答 0