disableAsyncTimeout (Client API reference)
Disables the timeout for the event handler. Instead the event waits until the event handler's promise is fulfilled. Learn more about Async OnSave timeouts
Syntax
executionContext.getEventArgs().disableAsyncTimeout()
Example
async function myHandler(context) {
context.getEventArgs().disableAsyncTimeout();
// The 10000ms time out will not be disabled if the above line does not come before all async awaits
await Xrm.Navigation.openConfirmDialog({ text: "Are you sure you want to save?" });
}
Related articles
getSaveMode
isDefaultPrevented
preventDefault
preventDefaultOnError
Atsauksmes
https://aka.ms/ContentUserFeedback.
Drīzumā: 2024. gada laikā mēs pakāpeniski pārtrauksim izmantot “GitHub problēmas” kā atsauksmju par saturu mehānismu un aizstāsim to ar jaunu atsauksmju sistēmu. Papildinformāciju skatiet:Iesniegt un skatīt atsauksmes par