How to get session user in javascript?
541824Aug 7 2007 — edited Aug 7 2007Hi 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!