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!

How to have a message display after authentication?

APEX_DOUCEOct 21 2022

Hello all,
I am using APEX 20.1.
I have a need to display a message after a user authenticates into the app. The message needs a 'confirm' or 'ok' as a type of pause before fully entering into the application.

if apex_authentication.is_authenticated then 
    apex.message.confirm( "Notication message.", function( okPressed ) { 
    if( okPressed ) {
        afterLoad();--not sure what goes here?
    }
}); 
else 
    --Something? I am not sure what this would be. 
end if;

What I came up with is something like what is above. I am not sure where to "put" this code for it to run after authentication. Global page? As a computation for each page that could be an "entry point?"
I am also unsure of two aspects within the code.
What should be where "afterLoad()" is located that means the user is simply taken to the page?
What the "else" should be? Or, if there should be an "else?"
Any help is very much appreciated

Thank you,
Derek

Comments
Post Details
Added on Oct 21 2022
9 comments
379 views