电子表格,点击保存按钮,触发宏事件;
创建客户端onRenderReport事件宏,如下:
function main(spreadsheetReport) {
var that = spreadsheetReport.spreadsheetReportWriteBack;
that.__new_doSaveClick= function() { windowAlert(1); this.doSaveClick(); }
that.removeListener(that.elem_btnSave, "click", that.doSaveClick, that);
that.addListener(that.elem_btnSave, "click", that.__new_doSaveClick, that);
}