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 get session user in javascript?

541824Aug 7 2007 — edited Aug 7 2007
Hi all

I'm developing a simple application in APEX. Right now, i'm trying to get the current session user to save it in a hidden field.

To example:

Consider i logged in as user "A" and a record i'm trying to edit was created by user "B". I've tried to use :APP_USER in the default value field, but, when i try to update the record, it ignores the current user ("A") and keeps user "B".

After this, i tried to get around the problem using a select list where user=:APP_USER and it worked perfectly... But then i had the need to hide the field -> it stopped working...


Now, i'm trying to create a function in javascript to get the user name that has logged in and put it in the corresponding field (consider field named "user")...



I thank in advance all the help you can give me!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 4 2007
Added on Aug 7 2007
3 comments
1,566 views