Step:1
=====
/ Button click then loading/removeLoading
function loading() {
waiter = waitingPopup();
}
function removeLoading() {
if (waiter) {
waiter.remove();
}
}
function waitingPopup() {
$("body").prepend(
'<div id="apex_wait_overlay" class="apex_wait_overlay"></div>'
);
}
/
-----------------------------------------------------------------
This Code Write Text file and change file extention .js
File name: javascript_file.js
and upload Shared Components --> Static Workspace Files
and Copy Reference : #WORKSPACE_FILES#javascript_file#MIN#.js
Go to Shared Components --> User Interface Attributes--> javaScript
and Copy to Paste Reference
Example: #WORKSPACE_FILES#javascript_file#MIN#.js
------------------------------------------------------------------
Step: 3
=====
Go to page Function and Global Variable Declaration.
Copy to paste this code:
function myStopFunction() {
// let daymmill = $v('P51_EMAIL');
// let daymemmberNo = $v('P51_FULLNAME');
// if (!daymemmberNo) {
// apex.message.alert("Member Name is null");
// }
// else if (!daymmill) {
// apex.message.alert("Meal Date is null");
// } else {
loading();
// apex.region('millinfo').refresh();
apex.page.submit('Save');
setTimeout(removeLoading, 2000);
}
// }
step: 4
=====
Create dynamic Action On SAVE Button.
Execute Javascript Code: myStopFunction();