Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion Resources/4dviewpro.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,26 @@ function runCommand(action, params = undefined) {
console.log(err.stack);
return { result: null, error: (typeof err === 'string') ? err: err.message };
} finally {
Utils.spread.resumeCalcService(false);
if (_vp_isReadOnlyCommand(action)) {
// like SpreadJS when exporting from UI, do not recompute volatile functions (ex: NOW()) (ACI0105147)
Utils.spread.getCalcService().resume(false, true /* skipDirtyVolatile */);
} else {
Utils.spread.resumeCalcService(false);
}
//Utils.spread.resumePaint();
vp_endLongOperation();
}
}

/**
* Commands that only read the document (getters and exports) must not modify it
*
* @param {string} action
*/
function _vp_isReadOnlyCommand(action) {
return action.startsWith('get-') || action.startsWith('export-');
}


function runCommands(actions, waitAsync) {
try {
Expand Down
Loading