问题
I create a procedure to process data. This procedure take ~1 minute to complete. How can I create a wating (progress) bar to wait for the result of procedure?
Note: Now I use version 4 of Apex. Please help me the way to implement using javascript and css
回答1:
Here is the easiest solution with no javascript or css.
Lets say you have a button named 'P1_Submit' which submits the page and triggers you process. Edit the button and at Action select Defined by Dynamic Action. Then create a dynamic action with:
- Event=Click
- Selection Type=Button
- Button=P1_Submit
- Condition=No Condition
- True Action=Submit Page
- Uncheck Fire On Page Load
- Show Processing=Yes
回答2:
There are a few dynamic action based plug-ins that can be used for progress bars in APEX. Here is one I wrote.
https://github.com/drumbeg/apex-nprogress
来源:https://stackoverflow.com/questions/32716566/oracle-apex-create-a-progress-bar-when-waiting-result