【发布时间】:2016-04-28 08:32:34
【问题描述】:
我想使用 DIV 来显示我的报告,所以我看到了 icCube 文档 icCube Web Reporting : Displaying a Report 但是当我尝试应用它时,我很困惑如何将脚本的不同功能集中在一起html页面,功能如下:
第一部分
var ic3reporting = new ic3.Reporting({
noticesLevel: ic3.NoticeLevel.ERROR,
dsSettings: {
userName: "demo",
userPassword: "demo",
url: "http://localhost:8282/icCube/gvi"
}
});
ic3reporting.setupGVIConfiguration(function() {
ic3reporting.setupApplication({
mode: ic3.MainReportMode.REPORTING,
menu: ic3.MainReportMenuMode.OFF,
noticesLevel: ic3.NoticeLevel.ERROR,
container: $("#report-container")
});
});
第二部分
var options = {
report: { name: 'My Report' },
mode: ic3.MainReportMode.EDITING_REPORTING,
menu: ic3.MainReportMenuMode.ON,
noticesLevel: ic3.NoticeLevel.INFO
};
ic3reporting.openReport(options, function() {
// your callback (I don't inderstand how can i putting this code)
});
我不明白我怎样才能把这些部分收集起来 构建这个脚本对我来说非常重要,这使得报表的导出比以前更容易。
【问题讨论】:
标签: javascript html iccube