Iccube 显示报告-未定义ic3ready

Iccube 显示报告-未定义ic3ready,iccube,iccube-reporting,Iccube,Iccube Reporting,我致力于在服务器上运行的web应用程序中显示IcCube报告 这是我们使用的代码片段: <script src="http://localhost:8282/icCube/doc/ic3-report/app/reporting/js/loader/ic3bootstrap.js"></script> <script type="text/javascript"> var ic3root = "http://localhost:8282/icC

我致力于在服务器上运行的web应用程序中显示IcCube报告

这是我们使用的代码片段:

<script src="http://localhost:8282/icCube/doc/ic3-report/app/reporting/js/loader/ic3bootstrap.js"></script>

<script type="text/javascript">



    var ic3root = "http://localhost:8282/icCube/doc/ic3-report/app/";
    var ic3rootLocal = "http://localhost:8282/icCube/doc/ic3-report/app-local/";

    var options = {

        root: ic3root,
        rootLocal: ic3rootLocal,

        callback: function () {

            var options = {
                dsSettings:{
                    userName:"",
                    userPassword:"",
                    url: "http://localhost:8282/icCube/gvi"
                },

                mode:ic3.MainReportMode.REPORTING,
                hideTopPanel: true,

                noticesLevel:ic3.NoticeLevel.ERROR,


                report: {
                    name: 'shared/asda'
                }
            };

            ic3.startReport(options);
        }
    };

    ic3ready(options);

</script>

变量ic3root=”http://localhost:8282/icCube/doc/ic3-报告/app/”;
变量ic3rootLocal=”http://localhost:8282/icCube/doc/ic3-报告/应用程序本地/“;
变量选项={
根:ic3root,
rootLocal:ic3rootLocal,
回调:函数(){
变量选项={
数据设置:{
用户名:“”,
用户密码:“”,
url:“http://localhost:8282/icCube/gvi"
},
模式:ic3.MainReportMode.REPORTING,
是的,
通知级别:ic3.NoticeLevel.ERROR,
报告:{
名称:“共享/asda”
}
};
ic3.startReport(可选);
}
};
ic3ready(选项);
当我在一个独立的HTML wile中运行它时,它工作得很好,但是当我尝试在嵌入到我的应用程序中的服务器上运行时,我得到了错误

Uncaught ReferenceError: ic3ready is not defined
at <anonymous>:43:9
at DOMEval (jquery.js:82)
at domManip (jquery.js:5782)
at jQuery.fn.init.append (jquery.js:5918)
at jQuery.fn.init.eval (jquery.js:6012)
at access (jquery.js:3976)
at jQuery.fn.init.html (jquery.js:5979)
at Object.link (angular-route.js:1198)
at eval (angular.js:1294)
at invokeLinkFn (angular.js:10255)
未捕获引用错误:未定义ic3ready
时间:43:9
在DOMEval(jquery.js:82)
在domManip(jquery.js:5782)
在jQuery.fn.init.append(jQuery.js:5918)
在jQuery.fn.init.eval(jQuery.js:6012)
at access(jquery.js:3976)
在jQuery.fn.init.html(jQuery.js:5979)
在Object.link(angular route.js:1198)
评估时(angular.js:1294)
在invokeLinkFn(angular.js:10255)
我使用带有JavaEE和Angular 1.5的Wildfly 10应用服务器


任何帮助都是值得的

是否加载了js文件ic3bootstrap.js(请使用调试器进行检查),看起来与函数定义的情况不同。如我们所见,确实如此。奇怪的是,这个函数是在这个文件中定义的,没有其他错误。您确定在执行js代码之前加载了文件吗?(您是否尝试添加断点)?