在系统中,存在报表缓存和数据集缓存:
1、电子表格有缓存,但是数据集禁止了缓存。
2、电子表格和报表数据集同时存在缓存。
如下电子表格中通过数据集获取当前时间,同时使用了Excel的函数获取当前时间作为对比。在smartbi中多次打开该报表,会发现数据集的时间是没有发生变化的,所以可通过宏代码禁止缓存。
类型 | 对象 | 事件 |
---|---|---|
ServerSide | spreadsheetReport | onBeforeOutput |
function main(spreadsheetReport) { spreadsheetReport.cacheable = false; } |
资源下载
报表资源: migrate.xml