目录:
gotoLastPage编辑
方法 | gotoLastPage() | 跳转到最后一页 |
---|---|---|
参数 | - | - |
返回值 | void | |
示例 | 已经获取到的报表块对象定义为 report ,跳转到报表块的最后一页
普通报表中:
决策报表中:
| |
应用示例 | 点击按钮,跳转到报表末页: |
gotoPreviousPage编辑
方法 | gotoPreviousPage() | 跳转到上一页 |
---|---|---|
参数 | - | - |
返回值 | void | |
示例 | 已经获取到的报表对象定义为 report ,跳转到报表的上一页: report.gotoPreviousPage() 普通报表中:_g().gotoPreviousPage() 决策报表中:_g().getWidgetByName('report0').gotoPreviousPage() | |
应用示例 | 点击按钮,跳转到报表上一页: |
gotoPage编辑
方法 | gotoPage(pageNumber) | 跳转到指定页 |
---|---|---|
参数 | pageNumber:number | 数字,指定页的页码 |
返回值 | void | |
示例 | 已经获取到的报表对象定义为 report ,跳转到报表的第 3 页: report.gotoPage(3) 普通报表中:_g().gotoPage(3) 决策报表中:_g().getWidgetByName('report0').gotoPage(3) | |
应用示例 | 点击按钮,跳转到报表第 3 页: |
gotoFirstPage编辑
方法 | gotoFirstPage() | 跳转到第一页 |
---|---|---|
参数 | - | - |
返回值 | void | |
示例 | 已经获取到的报表对象定义为 report ,跳转到报表的第 1 页: report.gotoFirstPage() 普通报表中:_g().gotoFirstPage() 决策报表中:_g().getWidgetByName('report0').gotoFirstPage() | |
应用示例 | 点击按钮,跳转到报表首页: |
gotoNextPage编辑
方法 | gotoNextPage() | 跳转到下一页 |
---|---|---|
参数 | - | - |
返回值 | void | |
示例 | 已经获取到的报表对象定义为 report ,跳转到报表的下一页: report.gotoNextPage() 普通报表中:_g().gotoNextPage() 决策报表中:_g().getWidgetByName('report0').gotoNextPage() | |
应用示例 | 点击按钮,跳转到报表下一页: |
getCurrentPageIndex编辑
方法 | getCurrentPageIndex() | 获取当前页码 |
---|---|---|
参数 | - | - |
返回值 | number | |
示例 | 已经获取到的报表对象定义为 report ,获取报表对象当前页码: report.gotoNextPage() 普通报表中:_g().getCurrentPageIndex() 决策报表中:_g().getWidgetByName('report0').getCurrentPageIndex() | |
应用示例 | 点击按钮,查看报表当前页码: |
getReportTotalPage编辑
方法 | getReportTotalPage() | 获取总页数 |
---|---|---|
参数 | - | - |
返回值 | number | |
示例 | 已经获取到的报表对象定义为 report ,获取报表对象总页数: report.getReportTotalPage() 普通报表中:_g().getReportTotalPage() 决策报表中:_g().getWidgetByName('report0').getReportTotalPage() | |
应用示例 | 点击按钮,查看报表总共有多少页: |
currentPageIndex编辑
属性 | currentPageIndex | 报表当前的页码 |
---|---|---|
参数 | - | - |
返回值 | number | |
示例 | 已经获取到的报表对象定义为 report ,报表对象当前页码: report.gcurrentPageIndex 普通报表中:_g().currentPageIndex 决策报表中:_g().getWidgetByName('report0').currentPageIndex | |
应用示例 | 点击按钮,查看当前报表页码: |
reportTotalPage编辑
属性 | reportTotalPage | 报表总页数 |
---|---|---|
参数 | - | - |
返回值 | number | |
示例 | 已经获取到的报表对象定义为 report ,报表对象总页数: report.gcurrentPageIndex 普通报表中:_g().currentPageIndex 决策报表中:_g().getWidgetByName('report0').currentPageIndex | |
应用示例 | 点击按钮,查看报表当前页码: |
exportReportToExcel编辑
属性 | exportReportToExcel(extype) | 导出Excel |
---|---|---|
参数 | extype: string | 导出时指定的格式
|
返回值 | void | |
示例 | 已经获取到的报表对象定义为 report ,报表分页分 sheet 导出成 Excel: report.gexportReportToExcel('sheet') 普通报表中:_g().exportReportToExcel('sheet') 决策报表中:_g().getWidgetByName('report0').exportReportToExcel('sheet') | |
应用示例 | 点击按钮,导出 Excel: |