Can Get User ID APP_USER

Hi I am new to APEX. We have Oraclw 10.2.0.4 and APEX 3.2.
I have a field that I want to diplay a name of the person updating the record. I need to query a table to get it, as seen below. On my update form I wrote this in the SOURCE section :
select last_name||','||first_name display_value, employee_sys_id return_value from dba
where upper(peoplesoft_id) = :APP_USER
Source Type = SQL Querry
I want to display the last_name , First name on the screen but I want to record the employee_sys_id in the table. The query is returning nothing. When I replace te :APP_USER with the hardcoded user id that I am logged in with (which is a peoplesoft id) it works.
So for some reason :APP_USER is not getting the user id. I would appreciate some help.

ok. I am making slow progress. I have a field (MODIFIED_EMPLOYEE_ID). This is where I want to store the value of username , aka :APP_USER. I went onto the form as a developer and clicked Edit. Then I went to the field that I wanted to store the username in. I went to the Source section and changed it to PL/SQL Expression and I put the value :APP_USER.
The good news is that I now see the username that I logged in with on the screen. That is 50% of what I want to do. Now I want to store that username in the database in this column but on the screen I want to be able to display the actual users real name on the screen. I have a table that I can query with the username they logged in with and get the name.
So how do I now display the real name and store the username?

Similar Messages

  • I want is that I get  user name!

    Hi,
    Below are my two annotated classes, namely, Requisition and User, that represent two tables requisitions and users. What I want is that I get
    to get username from users table in my requisition query instead of user id which is stored in the requisitions.request_by.
    Table field requisitions.request_by hold the ids of users ,ie, users.id values.
    Here are my tables:
         users
                   + id int(11)
                   username varchar(15)
                   password varchar(15)
                   role int(11)
                   last_login timestamp
         requisitions
                   id int(11)
                   post varchar(50)
                   + request_by int(11)
                   platform varchar(50)
                   experience_required int(11)
                   comments text
                   date_requested date
    Here is my Query for fetching requsition object in the RequisitionServiceimpl.java
         public List getRequisitions(User loggedInUser){
              Query queryRequsitions = em.createQuery("Select r FROM Requisition as r");
              List list = queryRequsitions.getResultList();          
              return list;     
    Below are my two annotated classes Requisition and User:
    import java.util.Date;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.PrimaryKeyJoinColumn;
    import javax.persistence.SecondaryTable;
    import javax.persistence.Table;
    import javax.persistence.JoinColumns;
    import javax.persistence.JoinColumn;
    @Table(name="requisitions")
    @SecondaryTable(name="users")
    @Entity
    public class Requisition {
         @Id
         private int id;
         private String post;
         @Column(name = "request_by")
         private int requestBy;
         private String platform;
         @Column(name = "experience_required")
         private int experienceRequired;
         private String comments;
         @Column(name = "date_requested")
         private Date dateRequested;
         // Name from users Table
         @Column(table="users", name="username")
         private String username;
         public int getId() {
              return id;
         public void setId(int id) {
              this.id = id;
         public String getPost() {
              return post;
         public void setPost(String post) {
              this.post = post;
         public int getRequestBy() {
              return requestBy;
         public void setRequestBy(int requestBy) {
              this.requestBy = requestBy;
         public String getPlatform() {
              return platform;
         public void setPlatform(String platform) {
              this.platform = platform;
         public int getExperienceRequired() {
              return experienceRequired;
         public void setExperienceRequired(int experienceRequired) {
              this.experienceRequired = experienceRequired;
         public String getComments() {
              return comments;
         public void setComments(String comments) {
              this.comments = comments;
         public Date getDateRequested() {
              return dateRequested;
         public void setDateRequested(Date dateRequested) {
              this.dateRequested = dateRequested;
    // Only Getter for Users Table field username
         public String getUsername() {
              return username;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.Table;
    @Table(name="users")
    @Entity
    public class User {
    @Id
    private Long id;
    @Column(name="username")
    private String name;
    private String password;
    private int role;
    public String getName() {
    return name;
    public void setName(String user) {
    this.name = user;
    public String getPassword() {
    return password;
    public void setPassword(String password) {
    this.password = password;
    public Long getId() {
    return id;
    public void setId(Long id) {
    this.id = id;
    public int getRole() {
    return role;
    public void setRole(int role){
    this.role = role;
    Thank you,
    Adil

    I made this changes to Requisition.java and now I can get user name
    import java.util.Date;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    import javax.persistence.JoinColumn;
    import javax.persistence.OneToOne;
    import javax.persistence.Table;
    @Table(name="requisitions")
    @Entity
    public class Requisition {
    @Id
    private int id;
    private String post;
    @Column(name = "request_by")
    private int requestBy;
    private String platform;
    @Column(name = "experience_required")
    private int experienceRequired;
    private String comments;
    @Column(name = "date_requested")
    private Date dateRequested;
    @OneToOne
    @JoinColumn( name="request_by", insertable=false, updatable=false)
    private User user;
    public int getId() {
    return id;
    public void setId(int id) {
    this.id = id;
    public String getPost() {
    return post;
    public void setPost(String post) {
    this.post = post;
    public int getRequestBy() {
    return requestBy;
    public void setRequestBy(int requestBy) {
    this.requestBy = requestBy;
    public String getPlatform() {
    return platform;
    public void setPlatform(String platform) {
    this.platform = platform;
    public int getExperienceRequired() {
    return experienceRequired;
    public void setExperienceRequired(int experienceRequired) {
    this.experienceRequired = experienceRequired;
    public String getComments() {
    return comments;
    public void setComments(String comments) {
    this.comments = comments;
    public Date getDateRequested() {
    return dateRequested;
    public void setDateRequested(Date dateRequested) {
    this.dateRequested = dateRequested;
    public User getUser() {
    return user;
    public void setUser(User user) {
    this.user = user;
    Edited by: adilsun on Jul 23, 2008 8:36 PM

  • How to get user session details ?

    Hello.
    I can get user session details querying the "USER_AUDIT_SESSION" view against my developing database.
    I have written a PL/SQL function to retrieve those session details. When I executed the function on the production database I have not got any records. It seems that the underlined view is not being refreshed in the production environment.
    Is there any other view or table, available to unprivileged users, I can use to get session details such as the connection timestamp and the user action ?

    Thanks for the reply.
    Ok, I might check it using a non DBA user, I am not sure, though.
    All the database queries have to be executed under a normal user connection.
    I would like a way to get session details not using "user_audit_session".
    Is there any table or view, available to a default profile user, which has session details and has records as a default behaviour?
    As far as I could check disable audit_trail seems to be the normal behaviour of the clients of my application. There is no records in "user_audit_session".

  • From which table we can get the Role of the User in SRM

    Hi  All,
        I need to prepare a report which displays the user and his role in srm. So from which table i can get  the role of the user if i have the Userid.
    Thanks
    Channappa Sajjanar

    Hi
    t- code
    SUIM->rOLES->BY USER ASSIGNMENT
    SELECT WITHASSIGNMENT OF USER = username
    AS A OUTPUT YOU MAY GET ROLE ASSIGNED TO THAT USER.
    if you want which FM - you debug while executing this report.
    regards
    Muthu

  • All of a sudden my itunes wont come up when i hit the desktop icon. un and re installed many times, tried new users, it finally gave me "you need to reinstall sqmapi.dll " im a noob and i have know idea what that is or where i can get it. i cant open any

    all of a sudden my itunes wont come up when i hit the desktop icon. un and re installed many times, tried new users, it finally gave me "you need to reinstall sqmapi.dll " im a noob and i have know idea what that is or where i can get it. i cant open any file or library that has anything to do with itunes except safari and quicktime are fine. im about to pull out whats left of my hair.

    Okay, that's got one thing ruled out at least.
    Can you check something for me, big? I'd like to see if iTunes launches with the Bonjour Service disabled.
    In your Start menu, right-click Computer and select "Manage".
    Expand "Services & Applications".
    Open "Services". (Perhaps maximise the screen to better see what's going on.)
    Right-click the Bonjour Service and select "Properties".
    In the General tab, set the Startup type to "Disabled":
    ... and click OK.
    Restart the PC and try launching iTunes. Does it open this time?

  • I've tried to set up a new user on a mac book pro and i restarted it to create the new account but now all i can get is a white screen with the apple logo and the loading symbol what can i do ?

    i've tried to set up a new user on a mac book pro and i restarted it to create the new account but now all i can get is a white screen with the apple logo and the loading symbol what can i do ?

    Look at this support article:
    http://support.apple.com/kb/ts2570
    Ciao.

  • How can two users work on iMovie?  My husband is working on a memorial video for a family member who passed, I plan to edit but he had to take his computer to work.  I have the iMovie project on a zip drive.  How do I get it to open in my imovie?

    How can two users work on iMovie?  My husband is working on a memorial video for a family member who passed, I plan to edit but he had to take his computer to work.  I have the iMovie project on a zip drive.  How do I get it to open in my imovie? 

    You will need an external drive that is formatted as MAC OS EXTENDED (journaled).
    Move the Project, Events, and any photos and music to the external drive by following the instructions in this post.
    https://discussions.apple.com/docs/DOC-4141
    Be sure to use CONSOLIDATE MEDIA to get the photos and music. Then plug this drive into your computer and you will be able to edit.

  • I lost an xcel doc. Tried to find the Library folder in Users not there when use Finder. But when trying to upload a photo, iphoto found the library folder I can see my doc in Office 2011 Autorecov, but can't access it! How do I get User to show Library

    I lost an xcel doc a couple of days ago. Tried to find the Library folder in Users but not there when I use Finder (even when I do shift-command-G). But when trying to upload a photo in iphoto I found the library folder in Users. I can see my doc in Office 2011 Autorecovery, but can't access it! How do I get User to show Library then I can get to my long lost document?

    The auto recovery dat should be in the Microsoft User Data folder in your documents folder, not in the Library. However, I Haven't had to look recently.

  • How user can get a Sales Text for the any Line Item in the Billing?

    Salute Masters ! !
    How user can get a Sales Text for the any Line Item in the Billing?
    It's coming for other Order (Line Item for Bought out Item at Project Site - Some Item they procure at project site & complete the task).
    Where I can configure in system for all.
    Rgds
    Srivastav
    09973504950

    Hi,
    Sales text can be copied from customer to order , order to delivery and delivery to billing .
    Check the T-code : VOTXN , do the customization as per your requirement.
    check the below link :
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/dd/55f993545a11d1a7020000e829fd11/content.htm

  • How can I get users who accessed the database during last one month

    Hi All,
    How can get the list of users who logged on to the database DBProd and made changes to the tables of particular schema during say last month and current month.
    Thanks & Regards.

    DBA_PRIV_AUDIT_OPTS :-Describes current system privileges being audited across the system and by user and who has updated what can be done through trigger which would send the information to a history table. If you have it ready ask your team..
    SQL> select PRIVILEGE,SUCCESS,FAILURE from DBA_PRIV_AUDIT_OPTS where user_name='SCOTT';
    no rows selected
    SQL> audit ALTER SYSTEM by scott by access whenever not successful;
    Audit succeeded.
    SQL> audit session by scott by access;
    Audit succeeded.
    SQL> select PRIVILEGE,SUCCESS,FAILURE from DBA_PRIV_AUDIT_OPTS where user_name='SCOTT';
    PRIVILEGE SUCCESS FAILURE
    CREATE SESSION BY ACCESS BY ACCESS
    ALTER SYSTEM NOT SET BY ACCESS
    Regards
    Karan
    Edited by: Karan on Aug 2, 2012 7:15 PM

  • In which transaction can we get User consolidation details

    Hi All,
    In which transaction can we get User maintenance, change user data, update user data,
    Accept suggestion, Change license data, and update license data details.....
    And in which table or tcode we get the SAP license details...
    Thanks
    Ram

    Hi,
    Chk the following tcodes.......
    ADS2KIP_PROF
    BORC1
    BIBS
    license----
    J1ILIC01
    J1ILIC02
    J1ILIC03
    J1ILIC04
    J1ILIC05
    LICENSE_ADMIN
    Regards,
    Deeba

  • HT4906 I want to download the new updates I think to the 10.9 but our mac was given to us and when it comes to the last page it asks for the user name and password but this mac was wiped clean. How do I find out this info so I can get iPhoto?

    I want to download the new updates I think to the 10.9 but our mac was given to us and when it comes to the last page it asks for the user name and password but this mac was wiped clean. How do I find out this info so I can get iPhoto? To be honest I'm not even sure what type of Mac I have and don't know how to find out what kind it is
    I'd also like to make address labels and don't know where to find that either

    You would make address lables with the Contacts app.
    If you don't have the user name and password used to set up the machine then you need to purchase the apps for yourself.

  • How we can get the current running user information in BusinessOne

    Hi experts,
    How we can get the current running user information in BusinessOne Application,
    Based on the user details i want to assign some functionality,
    Regards,
    Saidarao yakkala

    Hi,
    As per me you can't get detail by server side.
    If you want to know who are connected then you can use sp_who2 procedure in SQL query.
    That will display who are login.
    For more detail you have to check LOG file on client side in SAP B1 > Log folder.
    Thanks
    Kevin

  • HT2305 Hi Other Users, can someone please advise me where i can get a Leopard download for my Power Pc G5?

    Hi Other Users, can someone please advise me where i can get a Leopard download for my Power Pc G5?

    eBay is another source for Mac OS X Leopard 10.5; however be sure to ONLY purchase the retail disk shown below and not a grey computer specific disc:

  • Setup a system Users can get to corporate network thru wifi

    Hi everyone,
    I may be behind on this...but finally I got a chance to ask.... Currently my manager thinks about to setup a wifi system so that the users can log on the network thru the wireless... There are some questions I have...
    1.) Is it a good practice to make a AP to share both public and corporate traffics on a same wifi system (but they can be on different vlans)..? Why or why not?
    2.) We have Active Directory for the network authentications... I would like to ask which way can be used to enhance the network security, including user authentications and data encryptions...
    3.) Any more concerns I should have? Or what is the best model setup for this wifi system?
    Hope you can help or share your opinions...I will really appreciate.
    Takami Chiro

    1.) Is it a good practice to make a AP to share both public and corporate traffics on a same wifi system (but they can be on different vlans)..? Why or why not?
    Yes.  This has been the cornerstone of wireless.  A single AP, for example, can broadcast CORP and Guest SSID.  And CORP users can login to their accounts via wireless.  Guest users can get diverted to a website and accept the T&C and off they go to the internet.  Guest users do NOT have access to corporate resources.  
    2.) We have Active Directory for the network authentications... I would like to ask which way can be used to enhance the network security, including user authentications and data encryptions...
    Yes you can.  You can even dot DOT1X.
    3.) Any more concerns I should have? Or what is the best model setup for this wifi system?
    If you don't know what you're doing, then get a reputable systems integrator or else things won't get done right.

Maybe you are looking for

  • How/can I change the "from" address in Mail?

    I just upgraded to Mountain Lion, and have come across a problem. I use iCloud for my mail account, but I want to change the "from" address - so the return address on my messages is NOT icloud. I could do this in Lion. In the mail account settings, t

  • A letter to Mr Shantanu Narayen

    I recently sent this letter to Mr Narayen, in the hope that he will listen to us members of the Adobe forum that wish to see FreeHand co-exist with other more complex applications which Adobe manufacture. NB: this isn't a dig at any particular applic

  • Error exporting long movie in Premiere Elements 4

    I just finished editing a movie in Premiere Elements 4.  Every time I try to export the movie, it begins rendering, gets as far as about 15%, and then says "Export Error: Error compiling movie.  Unknown error."  This happens no matter what format I c

  • Iphone 4s to iOS6 messages getting removed !!

    Since I updated my iphone 4s to iOS6 from iOS5.1.1. When I goto messages and try to view a message. It goes to the message view screen but with blank content and then the message is not visible in the list at all. Pls help.

  • Clearing financial documents with IDOC

    Hi, I receive invoices and clearing information from an external system. The invoices I process in SAP with ACC_BILLING. After a period I receive information from the external system that the invoice has been cleared. Now I have to clear this documen