Apex 5.0: Show a progress bar while Database Action is performed

人走茶凉 提交于 2019-12-05 06:57:58

问题


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});


来源:https://stackoverflow.com/questions/36156333/apex-5-0-show-a-progress-bar-while-database-action-is-performed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!