หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
ปิดใช้งานการหมดเวลาสําหรับตัวจัดการเหตุการณ์ แทนที่จะเป็นเหตุการณ์จะรอจนกว่าสัญญาของตัวจัดการเหตุการณ์จะเสร็จสมบูรณ์ เรียนรู้เพิ่มเติมเกี่ยวกับ Async OnSave หมดเวลา
ไวยากรณ์
executionContext.getEventArgs().disableAsyncTimeout()
ตัวอย่าง
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