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.