use: app_user to produce the line for the currently logged in user

I know that it is extremely simple, but I worked on it for about 2 hours now and can't make it work.

I have a USER table that contains information about the users allowed to use the database. Information such as username (login), pk_id (primary key), name, phone etc is there. I use a schema authorization I created using the advanced tutorial. What I want to do is to have a tab named MYDATA, only when the user clicks on one it will produce an update row with this specific user information so that they can be updated.

I created a form on a table, then created an item called P36_X_getpkid in the region. The source of this element gets the PK_ID (primary key of the table USERS) using this sql
Select PK_ID
USERS
where upper (userid) = upper(:APP_USER);

Then I try to tell the page fetch line rendering process automated to use this field as the element that contains the value of the key column and the primary key column PK_ID column.

It did not work.

I thought that maybe the extraction of automated lines disliked the calculated item, so I created another page 35 has only a single element, P35_X_getpkid, with the source
Select PK_ID
USERS
where upper (userid) = upper(:APP_USER);

and I created one before process header which redirects to page 36, and assigns P35_X_getpkid to P36_X_getpkid. Page 36, then has a form on a table with treatment extraction automated line and I told him to use the P36_X_getpkid field as the element that contains the value of the key column and the primary key column PK_ID column.

did not work.

Thanks for any help.

Marco

Hi Marco,.

On your page that needs the ID, create a new calculation with the following parameters:

Geographical area: item on this page
Calculate the point: P36_X_getpkid
Calculation Point: Before header
Calculation type: SQL query
Calculation:

Select PK_ID
USERS
where upper (userid) = upper (v ('APP_USER'))

Condition Type: Article 1 of the Expression value is NULL
Expression 1: P36_X_getpkid

Leave all other settings as default values

That should do it. In general, for something like this (that is to say, a value for the current user can be used several times) I create a part of the application and perform a calculation "on new Instance" (this is done through shared components, calculations of the Application), and then use * & APP_ITEM_NAME.* everywhere where I want the value to appear (including in the settings of the branch or the links on a page)

Andy

Tags: Database

Similar Questions

  • How to get the role (Hall) of the currently logged in user

    Hello

    BPM 11.1.1.5 / 11.1.1.5 JDeveloper / ADF BC

    I created a BPM process with 3 user tasks and human tasks associated with them, which will have jspx pages ADF TaskFlows.
    There will be 2 roles (lanes) in the BPM process. 2 tasks for a single role and 1 for the other role.

    Users will connect to the workspace of BPM to interact with the process

    I created a .jsff located in a delimited TaskFlow.
    I dropped this taskflow as region in all pages for the 3 UI jspx pages so that the region is reused. (Basically all users see the same content)

    But the behavior of the content will be dynamic based on the roles of users, Process Status and maybe some data from the database.
    For example, I want to the fields in the editable region when the process is created by the first user.
    After that the process of submission, he goes to the next user for approval. Then the user with the approval role can modify it.
    At the same time, if the user who submitted the process opens the task, it should be visible as Readonly for him.

    User (initiator) region - creates data - is editable
    User B (critical) - customer data - region is editable. The user opens the task that he argued. It should be readonly for him.
    The user has - receives Notification - area is read only

    Then

    I want to know if it is possible to get the currently logged into the role of the user (as defined in the corridors) in the BPM process.
    I want to get these roles in the ADF UI project and use it on the expression of readonly property in the .jsff file.

    Thanks for any help.
    Concerning
    Sameer

    You can use the following EL fields readOnly property to->

    #{securityContext.userInRole []}

  • RMAN-06820: WARNING: unable to archive the current log on the primary database

    I got the following exception when I try to backup the data files and the archivelogs on the physical by uisng RMAN standby database.

    RMAN-06820: WARNING: unable to archive the current log on the primary database

    Target ORACLE database error:

    ORA-17629: unable to connect to the remote database server

    ORA-17627: ORA-00942: table or view does not exist

    It's the backup script

    "

    connection target sys/oracle

    Configure controlfile autobackup on;

    Run {}

    nocfau together;

    allocate channel ch01 device type disc format ' / test/%U';

    allocate channel ch02 device type disc format ' / test/%U';

    backup database copy archivelog;

    backup copy current controlfile;

    }

    "

    And there is no error ora in the primary alert log.

    I was able to tnsping two server (primary/secondary) properly and could also primary of the remote login on standby db server and switch logfile. I read there is a very similar thread, but it has failed so I post again and hope I could get a few clues. Thank you.

    Hello again;

    Try to change this:

    connection target sys/oracle

    to something like this:

    RMAN target sys/password@PRIMARY auxiliary.

    Complete example:

    http://www.Visi.com/~mseberg/data_guard/duprman2.html

    Best regards

    mseberg

  • Pulling the currently logged in Windows user name for a watermark?

    Is it possible to get the username of the person of the current windows login information and then use these data watermark with this.addWatermarkFromText? I'm doing a simple option 1 button for one to mark the page currently displayed with their credentials to show they worked it in a given document.

    OK, so this is the code you place in a .js file in the folder under Acrobat JavaScripts:

    getWindowsUserName = {app.trustedFunction (function ()}

    app.beginPriv ();

    var tmpPath = app.getPath ("user", "temp");

    var pieces = tmpPath.split("/");

    If (parts.length > = 4 & shares [2] == "Users")

    return parts [3];

    Return ' ';

    app.endPriv ();

    });

    Then call the following code, you are the script in your stamp file to get the current Windows user name, you can:

    getWindowsUserName()

    Note This works on Windows 7. I have not tested on other plaforms...

  • Database does not start after losing the current log file.

    Hello

    I'm working on oracle 10.2.0 by mistake I lost my current log file. and I have no backup of it. my database is stopped. my database is in nonarchivelog mode.

    I use the command sequence to overcome
    SQL> shutdown immediate
    ORA-01109: database not open
    
    
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area  536870912 bytes
    Fixed Size                  1250044 bytes
    Variable Size             297798916 bytes
    Database Buffers          230686720 bytes
    Redo Buffers                7135232 bytes
    Database mounted.
    SQL> DROP LOGFILE 2;
    DROP LOGFILE 2
         *
    ERROR at line 1:
    ORA-00950: invalid DROP option
    
    
    SQL> alter databasE drop logfile member 'D:\oracle\product\10.2.0\oradata\NEO\REDO02.LOG';
    alter databasE drop logfile member 'D:\oracle\product\10.2.0\oradata\NEO\REDO02.LOG'
    *
    ERROR at line 1:
    ORA-00361: cannot remove last log member
    D:\oracle\product\10.2.0\oradata\NEO\REDO02.LOG for group 2
    any suggestions

    Thank you
    Umesh

    Published by: Umesh Sharma on November 27, 2008 05:30

    With DB in MOUNT State try as follows:

    SQL > recover database until cancel

    type to cancel immediately, if necessary, then

    SQL > alter database open resetlogs;

  • How to make Windows 7 see the list of the user on the login screen, not just the last logged-on user

    I am running Windows 7 Professional 64 - bit and have two user accounts on my computer. Problem is that the login screen shows only the last logged user and one "other users" button which allows you to manually enter the username. Is it possible to return to the display of a list of all users instead?

    Jon

    OK... I found how to fix this problem. I know it's a few years since this topic (and most of the people moved to windows 8) but for those who are still Windows 7 who are tired to type the user name, whenever you log in, here is how to display the icons of the user:

    WARNING: This patch is not a hack. I do not use any third party software. I am simply change a security setting in the windows system. The longest part is to find the file. As much as I would like to say that this will fix all computers, I can't guarantee that this will be the solution for your system. This fixed my problem because my just setting should be disabled. That being said, let's move.

    As an admin (must be in an account that has administrator privileges) click the Start button and in the search at the bottom of the opening bar, the type of menu "Edit Group Policy" and press on enter. When the local Group Policy Editor window appears, click on the following arrows in the left column to expand the lists to find the file to change...

    > Computer configuration

    > Windows settings

    > Security settings

    > Local policies

    Security options<-Click on="" this="" file="" name="" or="" icon="" (the="" arrow="" icon="" won't="" do="">

    In the right menu appears a bunch of system settings, find the one that we called "Interactive logon: do not display last user name" This is the setting which will no doubt say "Enabled" beside him. Right-click on the file and select 'Properties', then disable the setting. Restart your computer and you should be good to go!

  • I'm using a MAC with the current software. I am trying to download Adobe Flash Player. My password does not work. I ' v reset my password and restarted my computer. I need help with my password at the bottom of load.

    I'm on a MAC and my password does not work, I reset my password and I can not even download Adobe Flash Player.

    This password is presented by your operating system and is designed to prevent you from accidentally installing the software.

    If it comes to your personal computer and you don't need a password to connect to the computer when it first starts, you can probably leave the password blank and click OK to go to this prompt.  If it comes to your personal computer and your normal password does not work, make sure that CAPS LOCK SHIFT is off, and then type the password carefully.

    If this is your work machine and he asks an administrator password, well, you will need to have a conversation with your computer friendly.

    If you are still puzzled, you may need to reset the password on your Mac:

    http://support.Apple.com/kb/PH18653

    http://support.Apple.com/kb/PH14325

    http://support.Apple.com/en-us/HT201240

  • How to read the Drwtsn32.log and user.dmp files

    I'll have the blues of the blue screen and need to read these files to help me find the problem.

    I found the problem

    NVIDIA GeForce4 MX 420 with AGP8X

    as he tried to update last update driver was, but wouldn't Toad. I'm incotact with the support of tec awaiting a response

    Thank you for answer

  • view sid &amp; serial of the current user

    Hello

    I want to display the sid and serial of the currently logged in user but the sid & serial # must be displayed immediately after the connection. I mean, once a user enters the name of user/pass and press ENTER, the SQL command prompt before, sid & serial # must be display. I tried to run Select sid, serial # session $ v where username = user; statement file glogin.sql before setting the prompt but of no use. Even I tried to create a folder, but could not. Here's my glogin.sql:

    fixed lines 120
    set of 1000 pages
    termout off Set
    Col sid1 new_value in sid
    Prom prom col new_value
    Select sys_context ('USERENV', 'SESSION_USER') | » @'|| sys_context ('USERENV', 'DB_NAME') | ' > ' ball
    Double;

    the value of sqlprompt "
    Select sid, serial # of v_$ session where username = user;
    Set sqlprompt '& prom '.
    Set termout on
    fixed lines 120
    set of 1500 pages

    Although Oracle and operating system version is not applicable for this but still, I'm under Oracle (9i, 10g and 11g) on win xp. This is just a test system which I use for small orders/triggers test before you deploy in any official environment.

    TIA
    -Onkar

    Add the request to the file below glogin.sql

    select sid SID,serial# Serial# from v$session where AUDSID = USERENV('SESSIONID');
    

    Then start your session.

    SQL*Plus: Release 10.2.0.3.0 - Production on Wed Feb 29 15:22:28 2012
    
    Copyright (c) 1982, 2006, Oracle.  All Rights Reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
           SID     SERIAL#
    ---------- ----------
           137       2649
    
    SQL> 
    

    Hope this helps you

  • How to get the login of the user currently logged on to the IOM?

    Hello

    I am developing JSP in IOM and I'd like to get the data of the user currently logged*, it is possible via the getSelfProfile() ( tcUserOperationsIntf ) method, so far, I wrote the following code:

    --------------------------------------------------------------------------
    tcResultSet loggedUser = null;
    tcUtilityFactory utilityFactory = null;
    MyConfig = ConfigurationClient.ComplexSetting
    ConfigurationClient.getComplexSettingByPath ("Discovery.CoreServer");
    final Hashtable env = myConfig.getAllSettings ();

    tcSignatureMessage moSignature = tcCryptoUtil.sign ("xelsysadm", "PrivateKey");
    utilityFactory = new tcUtilityFactory (env, moSignature);

    tcUserOperationsIntf userIntf;
    userIntf = (tcUserOperationsIntf) utilityFactory.getUtility ("Thor.API.Operations.tcUserOperationsIntf");
    loggedUser = userIntf.getSelfProfile ();


    String userLogin;

    Try
    {
    userLogin = loggedUser.getStringValue ("Users.User ID");
    System.out.println ("User =" + userLogin);
    }
    catch (tcColumnNotFoundException e)
    {
    TODO
    }
    --------------------------------------------------------------------------

    The problem that this code always returns the value XELSYSADM and NO data for the user who is currently logged on. I think it's because of the line on the code (marked in bold) where the xelsysadm is passed to the moSignature variable. But without this line of code, it is impossible (I think) so... for tcUserOperationsIntf to initialize and use the getSelfProfile() method, and the circle is complete...

    Someone at - he had similar scenario?

    Thanks in advance!

    Try


    firstName and lastName will be of the currently logged in user

  • Sending mail to the current user

    Hi all

    I want to send the mail to failure to connect currently user.
    I know how to send the mail to a perticular user, but my requirement is I want to send the mail to the currently logged in user.
    Is there a way to do this. Help, please.

    Thank you
    Ravi.

    Assuming that the field of the target user's e-mail address is filled in access to its user FDM profile, you should be able to use the following syntax:

    strUserID = API. DataWindow.Connection.PstrUserID' this is the Userid of the active user of FDM
    strUserEmail = API. DataWindow.Security.fUserEmailGet (strUserID)' returns the e-mail address of the user

  • How selectBooleanCheckbox can set the current line?

    Hello

    Using ADF Faces 10 g, I have an af:table component that is read-only, but the last column contains an af:selectBooleanCheckbox. This checkbox is used to 'activate' and 'disable' to each line. When I click on the box, I need the valueChangeListener be aware which line has been activated (so that I can then make some changes on this line to toggle). By clicking on the box to check must call setCurrentRow, or at least pass on values I can use later to set the current line manually.

    My first thought was setActionListener, but it seems that it may not be combined with af:selectBooleanCheckbox. I searched and found the following post:
    HOW to set an ID for the component from variable
    and after reading this I tried setPropertyListener, once again, I found that this is not a valid child of af: selectBooleanCheckbox. The post dry with nuansantio mentioning several times that setActionListener and setPropertyListener cannot be used, but there is no other comments on a solution.

    Any thoughts on how I can get this to work?

    Hello

    Could you elaborate more about

    I need to make a number of manual steps (invoking request Module) when the user selects / disables the check box

    You can pretty much add a method in your Impl VO (who did all the steps you want to do) and call the method in an expression for the value of groovy / call it in valueChangedListener of the box?

    Arun-

  • Safe to remove the foreign file under \users?

    On my Win 7 Pro system, I created an administrator account on the computer (MyAdmin) in addition to limited accounts that are used on a daily basis.  For some reason, my C:\users folder has not only a MyAdmin folder (and files for other users), but a folder with the same name followed by a period and the name of the computer.

    My computer is called "Whale" and I have the following files in C:\Users

    Default (hidden folder)
    LimitedUserOne
    LimitedUserTwo
    Public
    MyAdmin
    MyAdmin.Whale

    In Control Panel / users, I see only MyAdmin (not MyAdmin.Whale).  Similarly, in the computer management / users, there is no list of MyAdmin.Whale

    Is it safe to delete C:\Users\MyAdmin.Whale and all of its subfolders?  Where it comes from in the first place?

    Here you go:

    1. Log in as MyAdmin.
    2. Click on the Globe to boot, type the three letters cmd and press ENTER.
    3. Type the following commands and press ENTER after each:
      Set userprofile
      (This shows you the folder for the active profile. Which one is?)
      dir/a "c:\Users\MyAdmin\ntuser.dat".
      dir/a "c:\Users\MyAdmin.Whale\ntuser.dat".
      (These commands will tell you when the profile folder last used)
      ren 'c:\Users\MyAdmin' MyAdmin.NotInUse
      (This command renames the MyAdmin folder to something else. It is an intermediate step and all safe. You can permanently delete the folder in two weeks if all goes well).
    Also - you burn and test a repair of Windows CD? If you have not then you must do it now, before you start playing with the system files. If you don't then will not be able to repair Windows in case he refuses to boot normally.
  • How can I add reload the current Page in the toolbar Firefox 9?

    Once I have use customize toolbar, reload the current Page is not an option. I got this feature in previous versions of Firefox, and on another computer where Firefox has been updated to 9 the rest feature but I can't understand how to add to this new computer.

    Firefox 4 and later versions use a combined Stop/Reload/Go button that is placed at the right end of the address bar.

    During the process of loading page it shows as a stop button and once the charging button is replaced by a reload button.

    If you type in the address bar this button would then become a button go.

    Click the Reload button to duplicate the current tab in a new tab.

  • How to read the vmware.log on a guest

    I am aware that the vmware.log on a guest is stored in the datastore for this guest folder. How can you acess the current log, because it seems to be locked as updates to the log file. You have to close the comments?

    xbradshr wrote:

    I am aware that the vmware.log on a guest is stored in the datastore for this guest folder. How can you acess the current log, because it seems to be locked as updates to the log file. You have to close the comments?

    You will need to access the data store of the ESX/ESXi host where the virtual machine is running, then you will be able to read the file on the run.

Maybe you are looking for