I'm currently using APEX 5.1. I defined a dynamic action on a button click that executes a PL/SQL stored procedure then submits the page.
The procedure takes approximately 30 seconds to execute. I'd like to display a wait "spinner" animation while the procedure runs.
I added a JavaScript action before the PL/SQL code with the following statement
apex.widget.waitPopup();
However the animation appears briefly after the procedure has finished just before the page submit.
How can I get the spinner to appear immediately when the button is clicked?
Thanks.