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!

display different buttons based upon user logged on

mjhamiltonDec 8 2008 — edited Dec 8 2008
I have 2 buttons on page 8, HOME and FINISH, that I would like to display only one or the other of based upon the user logged onto the application.

This arrangement allows the user to be directed to the proper page by the proper button being displayed based upon who the user is, guest or mhamil. So, if guest logs in on page 101, then on page 8 the HOME button displays for them to click to go to page 2010. If mhamil logs in on page 101, then on page 8 the FINISH button displays for them to click on to go to page 2001.

I have tried creating the two buttons as Optional URL Redirect with a target as Page in this Application. Then I set a condition.

For the FINISH button the condition type is 'value in expression 1 = expression 2'. In the Expression 1 field I have tried putting :APP_USER and the value in Expression 2 is mhamil. This did not work. The FINISH button did not display. I also have tried placing in Expression 1 :P101_USERNAME and in Expression 2 mhamil, but it did not work. The FINISH button did not display.

Both buttons display without a condition placed on them.

Any ideas on what I am doing wrong in my conditions I create?

Thanks,
Maggie

Edited by: mjhamilton on Dec 8, 2008 10:16 AM
This post has been answered by 438381 on Dec 8 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 5 2009
Added on Dec 8 2008
2 comments
567 views