Disable Async Timeout for Save Events in Model-Driven Forms – Show Dialogs in OnSave


The OnSave event in Model-Driven Forms can now execute asynchronous code, allowing for requests to be made before saving a record. Previously, the only way to make requests before saving was to stop the saving process, make the requests, and then start the saving again. However, this had some issues. Now, with the "Async OnSave" option, promises can be returned from the OnSave handler. There is a limit of 10 seconds for the OnSave handler to wait for the promises to resolve. To show a confirm dialog in the OnSave event, the disableAsyncTimeout function can be used to disable the timeout. This allows the user to confirm whether or not to save the record.


Article 25m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time