Visualize.js のページネーションに関する質問があります。
iframe を使用してレンダリングされたレポートがあり、ページネーションとエクスポート オプションを備えた上部のツールバーがあります (jasper_iframe.png を参照)。サンプル コードは以下のとおりです。
<div class="its-preloader-reports">
<iframe src="http://localhost:8080/jasperserver-pro/flow.html?_flowId=viewReportFlow&reportUnit=/public/Exchange/reports/Report1&decorate=no&enterpriseId=11&startTime=28/05/2015%2000:00:00&endTime=28/05/2015%2023:59:00&name=itmsadmin%20quwic&report_type=3" height="867px" width="960px"> </iframe>
このレポートをvisualize.jsに変換すると、同じレポートの上部のツールバーがなくなります(jasper_visualize.pngを参照)。以下のサンプルコード
visualize({
server: "http://localhost:8080/",
auth: {
name: "superuser",
password: "superuser"
}
},function (v) {
v("#container").report({
resource: "/public/Exchange/reports/Report1",
params: {
"enterpriseId": ["21"],
"startTime": ["01/04/2015 00:00:00"],
"endTime": ["03/04/2015 23:59:00"],
"name": ["itmsadmin quwic"],
"report_type=3": ["3"]
},
error: handleError
});
function handleError(err) {
console.log('error:'+err.message);
}
});
私の質問は、Visualize.js がこのツールバーをネイティブでサポートしているのか、それとも独自に実装する必要があるのかということです。どんな説明でも本当に感謝します