Enter the name of the logged-on user

is it possible to enter the user name of the person who is recorded in the APEX?

I have a package following changes to a database and at the moment the USER* variable 'ANONYMOUS' poster

Thank you.

This should work as long as tolower is a function that is available to your user.

I think Oracle built-in function is lower (v ('app_user')).

Earl

Tags: Database

Similar Questions

  • Show/hide menu based on the logged in user

    Hello

    12.1.3 Jdev

    I want to show/hide some menu items based on the logged in user.

    I will explain the current design:

    In my application, I created a menu as below. (It is created using 'Create or Update ADF Menu' file adfc_config).

    ibis_menu. XML

    <?xml version="1.0" encoding="windows-1252" ?>
    <menu xmlns="http://myfaces.apache.org/trinidad/menu">
      <itemNode id="itemNode_home" label="Home" action="goHome" focusViewId="/home"/>
      <itemNode id="itemNode_transaction" label="Transaction" action="goTransaction" focusViewId="/transaction"/>
      <itemNode id="itemNode_customer" label="Customer" action="goCustomer" focusViewId="/customer"/>
      <itemNode id="itemNode_upload" label="Upload" action="goUpload" focusViewId="/upload"/>
      <itemNode id="itemNode_profile" label="Profile" action="goProfile" focusViewId="/profile"/>
      <itemNode id="itemNode_serviceRequest" label="Service Request" action="goServiceRequest"
                focusViewId="/serviceRequest"/>
      <itemNode id="itemNode_report" label="Report" action="goReport" focusViewId="/report"/>
    </menu>
    

    I have a navigation pane in my Pages that use this menu as below:

    <af:navigationPane hint="bar" id="np1" value="#{ibis_menu}" var="menuInfo">
                            <f:facet name="nodeStamp">
                                <af:commandNavigationItem id="ni1" text="#{menuInfo.label}"
                                                          destination="#{menuInfo.destination}"
                                                          action="#{menuInfo.doAction}"/>
                            </f:facet>
                        </af:navigationPane>
    

    Now, I want to hide some items on the menu, depending on the Type of user loggedIn. I have the userType stored in the managed bean.

    How can I get this feature.

    An approach which I think is as below:

    Define a variable for each itemNode in a managedbean(session scope) and who associate with the property ' visible ' / ' rendering ' of the itemNode in the Menu xml.

    Please let me know is a good way to do it or is there another solution better?

    See you soon

    AJ

    So, maybe this can help:

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/48-sitemenu-protection-169190.PDF

  • What are the causes of the log of user account on missing cursor in Windows XP? I have two trays of office that they have this same problem. If you restart them the cursor returns?

    What are the causes of the log of user account on missing cursor in Windows XP? I have two trays of office that they have this same problem. If you restart them the cursor returns?

    Hi DaddyJeff,

    1. don't you make changes before the show?
    2. are you referring to the cursor in the area of user password on the login screen of Windows?
    3. when the cursor goes missing, the mouse pointer works on screen?

    It is difficult to say what is causing this problem. If the mouse pointer freezes or stops working, then we recommend you to reinstall the mouse. To do this, try the following steps:
    a. sign in to Windows.
    b. Click Start, click Run, type devmgmt.msc, and then click ok.
    c. in the list of objects, expand mice and other pointing devices.
    d. right click on the sub element and click on uninstall.
    e. unplug the mouse and plug it back.
    f. the Device Manager, select an item in the list, click the Action menu, click scan for hardware changes.
    g. check if the mouse is detected, if so, then install it.

    See mouse USB which is connected to a USB 2.0 hub is not detected by Windows XP


    Note:
    if the problem persists, restore the computer to an earlier time. See How to restore Windows XP to a previous state

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I get the ENTERPRISE_ID of the logged-on user?

    Hello

    Is there a PL/SQL function that I could use to get the ENTERPRISE_ID of the user logged on so that I can use it in a report query for example as below.

    SELECT package.function

    FROM DUAL;

    "package.function" must be able to return to the ENTERPRISE_ID of the logged in user.

    Kind regards

    Santhosh Jose

    I think that you can access the ENTERPRISE_ID with:

    • SYS_CONTEXT ('FND_VPD_CTX', 'ENTERPRISE_ID')

    Assuming that the ApplCore session has been initialized or alternatively:

    Note that since it is related to the VPD implementation, that you can't question simply through companies, rather restrictions are applied at the level of the table. Also note that since its code internal, it is subject to change without notice.

    --

    Jani Rautiainen

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • No place to enter the password and user name

    Until now I was using Skype without any problem and I accept all the automatic updates. A few days earlier, when I tried to log into my account, I had attached the log in page icon. There is no place to enter my username and my password. I have uninstalled and installed Skype again but the problem remains the same. Please let me know, if the problem is in the software or on my computer and how do I solve it.

    Best regards

    Angelos Polylogidis

    * edited for privacy

    Everything working properly again!

    Thank you very much!!!

    You are great!

    Thanks again!

  • [ADF, JDev12.1.3] That is the approach recommended to store the information of the logged-on user?

    Hallo,

    I would like to know which are:

    • approaches possible and advised to store the main information (which will be used throughout the application) of the user that is logged;
    • for each of the approaches that are the main advantages and disadvantages.

    For example

    I have my doubts if store info in variables private module request or if I'd better use the HttpSession.

    The use of HttpsSession back to store the information in a range session bean?

    A scope session bean should be used only to store information?

    Sorry if these question may be stupid but I'm starting to take care of the security of my application and I am a bit confused about the available possibilities.

    I use ADF Essentials, so I can't use ADFSecurity.

    Thank you

    Federico

    I have my doubts if store info in variables private module request or if I'd better use the HttpSession.

    Never use app module variables to store data. If you need to store data in the model project, you can use the UserData card, but you must implement the serialization/deserialization.

    Read this blog post for more information: http://andrejusb.blogspot.com/2012/05/solution-for-sharing-global-user-data.html

    The use of HttpsSession back to store the information in a range session bean?

    They are similar.

    Difference is that you can put data directly to the session http (as an attribute) and if you use managed bean then keep you data in the attributes of bean and framework will put bean in scope of the session.

    A scope session bean should be used only to store information?

    Well, do not store the amount of data in session bean because it will influence the performance of the server (if the number of users increases you need more RAM, if you assign more RAM to the server it will be time for garbage collection, will also increase if you have clustering then great session bean (s) will increase the time of synchronization of the session) ", etc...)

    Dario

  • [ADF, JDev 12.1.3] How to hide menu items based on the logged in user

    Hallo,

    When the user logs on successfully, the applitacions led him to the main.jspx page.

    The main.jspx page has a menu bar that contains all of the available menus, submenus and menu items.

    After the connection, when the main.jspx page loads I would hide all the menus, submenus and menu items that the user is not qualified to see/use (I read the database).

    You kindly tell me which is the way the cleaner to achieve?

    Thank you

    Federico

    user10709360 wrote:

    Hello rohanwalia,

    Sorry, but I need more help

    I guess that the solution is to create a method in the AM who - reading form the database - returns a structure that indicates for each menu item should be visible or hidden.

    • How can I use the data returned by this method?
    • I call in a managed bean specifically dedicated to the management of the menu? Can I also use the already existing media bean, I created for the page?
    • What scope should have the bean?
    • Don't you think that it is better to define a 'visible' variable Boolean (initilized depending on the result of the AM method) for each menu item and how to bind the Visible property of each menu item to the variable respective in the bean in the bean?
    • Or I can loop the result of the method AM setting the Visible property of the menu items? In this case, I guess that all the menu items must be mapped into the bean by user interface variable. Am I wrong?
    • Is it not possible to write a method which, of the AM directly, hide the menus not necessary on the page (so without using a bean)?
    • In general, which are the correct always to hide menu items:
      • (1) before the page is sent to the browser (as "I can do it with PHP);
      • (2) once the page is loaded in the browser (as I can do it with JavaScript)?

    If you could give me some more detailed advice... I would be very happy.

    Thank you

    Federico

    (1) its best to make the treatment inside the method. You can return the parameters as normal java method.

    (2) Yes, you can use bean already exists in the project. But better to create a separate bean for this task of menu.

    (3) scope should be request unless you need to persist the attributes between requests.

    (4) Yes it is possible. You can define and initialize a Boolean variable with the results you get from the table based on the menu items should be made visible.

    (5) If you use the approach to point 4, then also you have to loop through the table menu items and set Boolean variables of bean. Yes you are right for the second part.

    (6) I'm not sure about this approach. How will you map it to your menu mode. It takes research.

    (7) before the page is loaded. I share with you links in above post with which you can do this.

    I hope this helps.

    Thank you

  • How to get the logged in user name of BPM worklist.

    Hello

    In my SOA application I have attached the external form of ADF to human task. In the list of tasks, when the action is run on human task, I want this username to be stored somewhere in the payload or any other variable. Because I want to use this username more far in workflow.so that all configurations are necessary. Please suggest.


    Thank you.

    Hello, please try this feature as below:

    public String getUserLogin() get WorkflowException,
    BPMIdentityException,
    {BPMUnsupportedAttributeException}
    String userId = "";
    IWorkflowServiceClient wfSvcClient;
    ITaskQueryService queryService.
    IWorkflowContext wfContext;

    Get the username of the user login
    String contextStr = ADFWorklistBeanUtil.getWorklistContextId ();
    wfSvcClient = WorkflowService.getWorkflowServiceClient ();
    queryService = wfSvcClient.getTaskQueryService ();
    wfContext = queryService.getWorkflowContext (contextStr);
    userId = wfContext.getUser ();

    Returns the user name;
    }

    Kind regards.

  • Remove the log-in user

    We have two users on one single computer, two separate log-ins, how can I remove one of the users, all have two access it administration.

    This article describes how to add and remove accounts:

    "How to create and configure user accounts in Windows XP"
      <>http://support.Microsoft.com/kb/279783 >

    HTH,
    JW

  • Get the logged in user

    Hello"

    I want to create a trigger to check, but I don't have my user name, it is always ANONYMOUS.

    Why?

    Thank you very much.

    create or replace trigger "TABLE1_AAA"

    FRONT

    Update on "table1";

    FOR EACH LINE

    BEGIN

       : new . DAT_UPDATE : = sysdate

       : new . TXT_USER_UPDATE : = ; the user

    END ;

    Hi horses60,

    APP_USERthe current user runs the application. Depending on your authentication model, the value of the user is differently defined.

    This can be solved by using Chains of Substitution

    This is why:

    create or replace trigger "TABLE1_AAA"
    BEFORE
       update on "TABLE1"
    FOR EACH ROW
    BEGIN
       :new.DAT_UPDATE      := sysdate;
       :new.TXT_USER_UPDATE := nvl(v('APP_USER'),USER);
    END;
    

    Regrards,

    Benjamin.

  • Information of the logged-on user does not appear after the user updates their information

    I created 2 pages. Page 1 has a recordset that only displays the users username and password, I made a filter on the recordset as username = var = MM_Username session. When he clicks on update, which is just a link to page 2, they go to page 2 which has a Recordset which filters their modules in the same way and allows them to update their username and password. I used a behavior to update this page as well. Thus, when the user updates their information it modifies the database information and works very well.

    The problem: when the user returns to the page 1 to see their update of username and the password that they have just updated, it is EMPTY. No info displays on the screen, even when I refresh the page. There if MM_Username var isn't refreshing while connected. Because when the user disconnects and connects, it displays new user name and password on page 1.

    It DOES not work when I take the filter out of the 1 Recordset page, but that doesn't make me all good b/c the user must of course only to see their information.

    I'm under DW CS3, php and mysql.

    Help, please! Thank you.

    I know a little php and takes care of everything.

    Great, because this will save my gibberish long habit ;-)

    I m attaching a screenshot of the login page updated the PHP code, which has only three new lines to take custody of.

    Line 1: Add the primary key to the 'users' table to the query

    Line 2: Add function mysql_fetch_row whose resource is the existing variable in $LoginRS

    Line 3: Add the Session Variable MM_user_id and assign the $row variable [0] (see line 2).

    Well, that s, and on other pages, you can define a query such as...

    "SELECT username, password FROM users WHERE id" is equal to the Session Variable MM_user_id

  • time of the logged in user tracking

    I need to build a simple connection and offer a view of the visitor a clip and then disconnect. I need to store it in a database, how long the user was logged in using ASP. Can anyone help? I can make the connection that I just need to know how to connect in time to connected users.

    Store the time connecting in a session variable:

    Session ("logintime") = now

    Calculate the elapsed time in seconds:

    DateDiff ("s", Session("logintime"), now)

  • How to determine the logged in user - BI Publisher

    Hello

    I'm building a SQL base report BI Publisher. I use BI Publisher integrated with the E - Business Suite for all users of ebiz can connect to BI Publisher

    I have a requirement that my LOV parameter query must be restricted based on the user connected BI Publisher. I have the required select statement that just asking the connected to the user to provide. But I don't know if there is no variable standard BI can I use in my SQL query

    Thank you
    SouhL

    Published by: SouhL Sep 14, 2008 01:04

    Hey Shashi,

    http://winrichman.blogspot.com/2008/09/how-to-get-logged-in-OBIEE.html

    Use the OPE session variables available as: xdo_user_name

    Select: xdo_user_name of double wil go search, connect it in USER :)

  • view the different buttons based on the logged in user

    I have 2 buttons on page 8, HOUSE and ended UP, I'd like to display only one or the other of the user to the application-based.

    This arrangement allows the user to be directed to the appropriate page by right button display based on who the user is, guest or mhamil. Therefore, if the comments connects to the 101 page, then on page 8 the HOME button displayed for them to click to access the 2010 page. If mhamil connects to page 101, then to page 8 so the button COMPLETE poster for them to click on go to page 2001.

    I tried to create the two buttons like URL redirection with a target like this Application Page as an option. Then I put a condition.

    For the button COMPLETE, the condition type is 'value in the expression 1 = expression 2'. In the field of the Expression 1 I tried to: APP_USER and the value of the Expression 2 is mhamil. It did not work. The button FINISH were not demonstrating. I also tried setting in Expression 1: P101_USERNAME and the Expression 2 mhamil, but it did not work. The button FINISH were not demonstrating.

    The two buttons display unconditionally placed on them.

    Any ideas on what I'm doing wrong on my terms, I create?

    Thank you
    Maggie

    Published by: mjhamilton on December 8, 2008 10:16

    Maggie:

    Check if you are using an expression of type "pl/sql" condition works with the expression being

    Upper(:APP_USER) = "MHAMIL";

    CITY

  • Enter the password to get user profile cannot be loaded whats goin?

    Enter the password is user cannot load profile

    Your account profile is probably corrupted. Create a new account/username and copy your files from the old database to the new account by following the instructions below.

    Restart in Mode safe mode with command prompt:
    During the initial start-up (once you turn on the computer first) press the F8 key several times (after the logo of startup and before Windows 7 starts loading).

    If you see 2 user accounts listed on the Safe Mode screen, one will be the account name that you created more a second user account named 'Administrator', which is by default/built-in Administrator account, log in using the account "administrator."

    See if your account listed, then proceed as follows:

    Starting from the command prompt, type: net user administrator / Active: Yes

    Close the commands and press prompt window: Ctrl + Alt + Delete and choose "change user" to choose the account "administrator."

    You should now see 2 user accounts listed on the Safe Mode screen, one will be the name of account thus created a second user account named 'Administrator', which is the administrator account by default/built-in.

    Normally the 'Administrator' account has no password (empty). Try to log on by using the construction in the "Administrator" account

    Now click on ' Start/Control Panel/user accounts' and create a new account and password.
    Finally, restart and log in using your new account name and copy your data from the old to the new files.

    JS
    http://www.PAGESTART.com

    Never be afraid to ask. This forum has some of the best people in the world to help.

Maybe you are looking for

  • Audio Modem driver, WLan, missing after installing Win XP on Equium L40

    Hello :) I hope you can help me, got a little problem. I have a portable Equiem which has XP Home Edition (SP3) on him now (originally Vista) Major problems with the drivers out there. There seems to be a lack of fair bit and I can't chase them. * Th

  • Cliq: Is it possible to use a larger (mAh) battery side?

    Is a greater appreciation of battery (mAh) that we could put in the Cliq? As I understand it the Motorola Droid uses the same 1420 mAh battery makes the Cliq and the Droid fast & most armored has better battery life than the small Cliq. Perhaps with

  • PC crashed and got stuck in a reboot loop

    Hello, we have a Dell Inspiron 531, and this morning, he had a big crash and then got stuck in a boot loop, blue screen and trying to fix the system. My OH stop it manually. The only change made to the computer of yesterday has been an update to iTun

  • X 230 Thinkpad Power Manager 6.32 question

    I have a month X 230 old laptop comes with Windows 7.  I just upgraded to Windows 8 and now find that the power (version 6.32) is just opening Manager here "Power Manager does not respond". Windows then closes the program.  I have the latest driver W

  • How to disable UAC for a particular game

    Hello My son just download this new game, Star Wars: The Old Republic. As it is on a separate user account which is password protected (I am the administrator), whenever it will open up this game, the UAC asking my password, and it really gets on my