反饋已提交
網絡繁忙
和 10.0 差別:
新增 getCurrentPageIndex、getReportTotalPage API
在使用API前,請務必先仔細閱讀 JS API 相容說明,API預設支援新版決策報表。
範例:決策報表中 report0 報表塊跳轉到上一頁
_g().getWidgetByName('report0').gotoPreviousPage();
點選下載範本:跳轉到上一頁.frm
範例:決策報表中 report0 報表塊跳轉到下一頁
_g().getWidgetByName('report0').gotoNextPage();
點選下載範本:跳轉到下一頁.frm
範例:決策報表中 report0 報表塊跳轉到最後一頁
_g().getWidgetByName('report0').gotoLastPage();
點選下載範本:跳轉到最後一頁.frm
範例:決策報表中 report0 報表塊跳轉到第一頁
_g().getWidgetByName('report0').gotoFirstPage();
點選下載範本:跳轉到第一頁.frm
pageNumber
para
noCache
注:para、noCache不支援在CPT中使用。
pageNumber:指定頁的頁碼,數字
para:選填,支援傳遞多個參數,格式為{name1:aa,name2:bb}
noCache:選填,報表塊重新整理的資料是否從快取裏面取,是否重新計算
為空,不重新計算。
true,重新計算所有報表塊
lazy,重新計算單個報表塊
範例1:決策報表中 report0 報表塊跳轉到第 3 頁
_g().getWidgetByName('report0').gotoPage(3);
範例2:決策報表 report0 跳轉到第2頁,並將 month 等於 5 傳參給 report0
_g().getWidgetByName("report0").gotoPage(2, "{month:5}", true);
JS自訂按鈕實現報表塊翻頁
範例3:決策報表中獲取 report0 報表塊當前頁的頁碼
_g().getWidgetByName('report0').getCurrentPageIndex();
點選下載範本:獲取當前頁頁碼.frm
範例:決策報表中獲取 report0 報表塊的總頁數
_g().getWidgetByName('report0').getReportTotalPage();
點選下載範本:獲取總頁數.frm
範例:決策報表中 report0 報表塊當前頁的頁碼
_g().getWidgetByName('report0').currentPageIndex;
點選下載範本:報表當前頁頁碼.frm
範例:決策報表中 report0 報表塊的總頁數
_g().getWidgetByName('report0').reportTotalPage;
點選下載範本:報表總頁數.frm
文 檔回 饋
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉