【仅供内部供应商使用,不提供对外解答和培训】
Table of Contents |
---|
报表服务器版本 | JAR 包版本 | 插件版本 |
---|---|---|
10.0 | 2018-07-31 | V1.0 |
...
在报表中新增按钮,并添加事件。js代码如下:
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
$.ajax({
url: "http://localhost:8075/webroot/decision/url/api/data",
type: "POST",
contentType: "application/json;charset=utf-8",
dataType: "json",
data: JSON.stringify({
"report_path": "GettingStarted.cpt",
"datasource_name": "ds1",
"page_number": 1,
"page_size": 100,
"parameters": [{
"name": "地区",
"type": "String",
"value": "华北"
}]
}),
success: function(data) {
alert("导出成功" + data.toString());
},
error: function() {
alert("baocuo");
}
}); |
示例模板:
以上。