在电子表格中是有缓存存在的。如下电子表格中使用了Excel的函数获取当前时间。在smartbi中多次打开该报表,会发现时间是没有发生变化的。
可通过宏代码禁止电子表格的缓存。
注意:如果数据集禁用了缓存就不需要这样做,只有当电子表格应用的数据集允许缓存,但是电子表格不允许缓存才需要
类型 | 对象 | 事件 |
---|---|---|
ServerSide | spreadsheetReport | onBeforeOutput |
function main(spreadsheetReport) { spreadsheetReport.cacheable = false; } |
资源下载:migrate禁止缓存.xml