Sdílet prostřednictvím


disableAsyncTimeout (reference k rozhraní API klienta)

Zakáže časový limit obslužné rutiny události. Místo toho událost čeká, dokud se nesplní příslib obslužné rutiny události. Další informace o časových limitech Async OnSave

Syntaxe

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?" });
 }

getSaveMode
isDefaultPrevented
preventDefault
preventDefaultOnError