Apex 5.0: Show a progress bar while Database Actio

2019-04-02 13:55发布

问题:

Implementing a Waitbar or Progressbar

In my Apex 5.0 application I have a SQL Update which is taking very long to process, and I want to implement an indicator to show that it is still running, so that the user won't start the action again.

A progressbar would do the trick, can anyone suggest a way of doing so?

(plugins aren't possible)

回答1:

Just Change the action of your SUBMIT button to Dyanamic Action

  • On dynamic action choose ON CLICK as Event .Choose Button for Selection Type and Choose Name of your submit Button to Button

  • Then on Action, Choose SUBMIT PAGE

  • Then on Request /Button Name, put your SUBMIT button's Name.

  • Then set SHOW PROCESSING to YES



回答2:

Use the JavaScript function apex.sumbit to submit the page and include the showWait option to display the progress bar. Here is an example...

apex.submit({  request:"DELETE",  set:{"P1_DEPTNO":10, "P1_EMPNO":5433},  showWait:true});