Last active
July 21, 2018 23:57
-
-
Save TysonJouglet/0f9428ad0f3d6ea2288dc20c1850f9dc to your computer and use it in GitHub Desktop.
A generic process for automatically maintaining the previous page. It assumes the creation of two application items, G_PREV_PAGE_ID, G_CURR_PAGE_ID
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- this is an application process that runs onload of every page. Optionally this can be adjusted to not use the bind variable | |
-- references and added into an application initialize database session code | |
-- avoid MODAL and POPUP pages from updating previous page. A custom back item can be created for abnormal workflows requireing modals/popups | |
if apex_page.get_page_mode(:APP_ID, :APP_PAGE_ID) = 'NORMAL' then | |
if :G_CURR_PAGE_ID != :APP_PAGE_ID then -- if the page has changed | |
:G_PREV_PAGE_ID := :G_CURR_PAGE_ID; | |
end if; | |
:G_CURR_PAGE_ID := :APP_PAGE_ID; | |
end if; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment