MDA: How to invoke the formOnLoad event after saved
Image Source: Shutterstock.com
Apr 28, 2023 5:00 PM

MDA: How to invoke the formOnLoad event after saved

External Blog Post

On form on load event, it is very common to set how the UI looks based on certain conditions. For instance, when the status of the entity/table is Inactive,

In a model-driven app, the formOnLoad event is triggered when the form is initially loaded. However, if you want to re-trigger the formOnLoad event after the form is saved, you can use the formContext.data.entity.save method to save the record and then call the formContext.ui.refreshForm method to reload the form and trigger the formOnLoad event.

On form on load event, it is very common to set how the UI looks based on certain conditions. For instance, when the status of the entity/table is Inactive, we need to lock all the controls. So, today we will learn how to do it via JavaScript (client scripting). Without further ado, let’s go.

The easiest way to call demo.onLoad after saving is to add the “Modified On” attribute in the form:

MDA: How to invoke the formOnLoad event after saved – Temmy Wahyu Raharjo

Feb 14, 2022 — On the Events tab, select Event Handler and complete the following information to configure the form event, and then select Done: Event Type: ...

Missing: MDA: ‎| Search with: MDA:

Sep 12, 2022 — Click on Form Properties; Then go to the Parameters tab; Add your parameter. In my case, I named it “tab_name”; Save & Publish the form.