Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

APEX 5.1 equivalent to Refresh Page (F5)?

elmo j hMay 26 2020 — edited May 26 2020

Is there a command that I could use in an APEX dynamic action that would be the equivalent to pressing F5?

I have a page that displays either a "Create ID" button (if a person's ID item is null) or a "Copy ID" button (if a person's ID item is not null).

When I click the "Create ID" button, a dynamic action is executed.  It creates the ID in the database, the region is refreshed, and the ID is displayed.  The "Create ID" button continues to display, however. 

I would like the page to recognize that the person now has an ID and display the "Copy ID" button instead.  If I press F5, the page will refresh and display the "Copy ID" button.

I have been unable to get a Refresh action at the end of the "Create ID"

I have tried:

  • Refresh  Region on each of the 2 regions on the page
  • Assigning static IDs to the buttons (createID, copyID) and refreshing the buttons with  jQuery Selector #createID (and #copyID)
  • Refreshing with jQuery Selector of input

Since pressing F5 works, I'm wondering if there is an equivalent to that.  I saw a similar discussion which mentioned apex.event.trigger("myRegionStaticID", "apexrefresh");  The discussion wasn't very specific, however, and I have been unable to get something similar to work on the entire document.

Any help would be greatly appreciated.

This post has been answered by InoL on May 26 2020
Jump to Answer
Comments
Post Details
Added on May 26 2020
5 comments
3,230 views