How to store the AccountID of a user in a field based on selection of name in a different dropdown

When our form is first loaded we store the current users name in the "username" field.
I have a “VPApprover” drop down field which is doing a look-up to a secondary list where we have two columns, Approver Name and Department. The Name column is a person column and I currently have the “username” displayed in the view
When a user is creating a new request they need to select a VP Approver
What I want to do is when the user selects an Approver,  store the Approvers “username” aka "AccountID" from the secondary list in the vpusername field on the form. Then on future editing of the form, I’ll compare the “username” field to the
“vpusername” field and if they are the same display an “Approve/Deny” drop-down.
I've tried selecting different Fields from the Approver secondary list, but can't seem to get the field on the form to update correctly based on the drop-down selection.  I have a rule set on the Drop-down field to set the vpusername field.. The Condition
is currently “If vpApprov is not blank” ..
When I get to the Value part, I can't figure out how to "grab" the AccountID of the VP Approver selected and store it in the field on the form. The fields I see in the secondary list under person are "DisplayName", "AccountID",
and "AccountType".
Thanks in advance for any help you can give me!!
Shane Meisner
SharePoint Solutions Architect

Hi,
From your description, my understanding is that you want to store account id to a filed based on a lookup column.
You could accomplish your requirement with Workflow, you could create your workflow with these steps below:
Create a local variables.
Use Set Workflow Variable action to set value to the variable.
Use Set Field in Current Item action to set value to the column(Please refer to the screenshot below).
And the screenshot below is the list15 and result in my environment.
Best Regards,
Vincent Han
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • Chat App: how to store the user IP in database when they login.

    hello,
    i am working on chat application. first i made a login GUI form. after login when we run the Chat program, it ask the ip address of the server to whom it want to connect. and if u enter the ip address, it will connect to the server and chat will begin, thats working perfect.
    but i want to show the list of users who r logged on and when i simply click on the user name, chat should begin.
    i have the logic that when any user log in, then its IP address will be stored in the database. this ip address will shown to the online users.
    but i dont know how to store the user information in database when they log in. can any body suggest me wht lines of code i should use.
    thanks.

    palakk wrote:
    i have the logic that when any user log in, then its IP address will be stored in the database. Bad approach. That will only work if this chat is only intended for use on a LAN. If it's used on the internet, then your users' IP addresses will almost always be either a) those of their routers, or b) private IP addresses, and in both cases, multiple users can have the same IP address.
    this ip address will shown to the online users. Why would you want to do that? I want to chat with "Bill", not with "1.2.3.4".
    but i dont know how to store the user information in database when they log in.Do the same thing that you're currently doing to store the IP address, but with the other information you want to store.
    can any body suggest me wht lines of code i should use. This is not a code writing service.

  • How to store the 2d graphics with matrix?

    Hello everybody,
    I met a problem,and the question is "How to store the 2d graphics with matrix?".
    who can help me?
    Best wishes to all of you.
    James Wei.

    Hello,
    It is possible to store the time in user variables. How to export those variables depends on the deployment of the file.
    Some information about showing elapsed time can perhaps give you a start:
    Display Time Information
    Lilybiri

  • How to store the output of a analog to digital converter into an 2D array

    Hi
    I am doing my M.Tech Thesis in Image reconstruction and I am using labview for simulation and I want to know how to store the output of a analog to digital converter into an 2D labview array.

    nitinkajay wrote:
    I want to know how to store the output of a analog to digital converter into an 2D labview array.
    How exactly are you performing 'Analog to Digital'???
    Grabbing image using camera OR performing data acquisition using DAQ card OR some other way????
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • How to access the global data in user exit.

    Hi All,
    How to access the global data in user exit.
    the question is that when we were writing a code in the FM. i need to read data from the standard program like newly created documen and this document number need to be accessed in my program.
    this document number is not imported to the FM i needed to access for frther proceed.
    Thanks in advance.

    Hi,
    See the below PDF file by Jeff Goldstein. There you can find all the details about accessing data outside of the exit.
    [SAP User Exits and the People Who Love Them|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8]
    This will help you to solve your problem.
    Regards
    Karthik D
    Edited by: Karthik D on Dec 2, 2008 4:18 PM

  • How to find the list of all user exits modified by the users

    How to find the list of all user exits using by in R3

    Hi Mohamed
    You use Solution Manager to do the comparison for you.  There are some nice features that will highlight all your customised coding.  Have a look at the SolMan resources on the Support Portal e.g. using SolMan for upgrade comparisons.
    Rgards
    Carl.

  • How to restrict the department to not user other departments' equipment?

    Dear SAPIENTS,
    How to restrict the department to not user other departments' equipment? If suppose any one creating order for equipment having different authorization group then system should not allow me to do this.
    Regards,
    Kaushal Rai

    Kaushal Rai,
    Use Authorization group for technical objects, create authorization gruops in IMG and assign the same to the Equipment master and block the other department with the same authorization group. For ristricting the authorization group to other departments after creating and assigning it to the equipment seek help from your BASIS team.
    goto the below path for cerating the Authorization group:
    IMG - PMCS - Master data in PMCS - Technical Objects - Define Authorization groups:
    Here you define the authorization groups, after completion of this step go to the Equipment master in General Data tab page there is a feild Authourization Group, mention the respective authorization group and provide this Authorization gruop value to the respective user in the user role with the help of BASIS Team.
    Regards,
    Praveen.

  • How to change the text of a user defined field in dynamic selections?

    Logical Database PSJ is used by t code CJI3 - we added a couple of user fields into the dynamic selections of CJI3.
    Now - how to change the text of this user filed (USR01 of structure PRSP_R in logical database PSJ)?
    Found an OSS note - 86980 - that tells that this is not possible.
    But when we read the documentation on the user field (CJI3 - dynamic selections  - double click on user field - F1), it shows the following text:
    User-defined field in which you can enter general information with a length of up to 20 characters.
    Dependencies
    The names (key words) for  user-defined fields depend on the field key.
    Now the question is where to change the field key..
    Thanks,
    Ven

    Madhu - you did not get the question I think.
    Anyways - I found an OSS note 1266643 - this code change should take care of the issue - it will then reflect the details maintained in custoizng at transaction code OPS1..
    Thanks,

  • How to store the images in Oracle?

    Hi,
    I am a new developer, trying to find out how to store the images in Oracle. Is there anyway that I can store the images in Oracle and insert them into my html file?
    Thanks!
    Sarah

    There is a simple image example available from OTN.
    From the OTN main page, go to Products --> interMedia --> Sample Code. The name of the example is "Load rich media content with a browser."
    This example loads and retrieves an image from an Oracle8i database through a web page using the Oracle interMedia Web Agent.
    Hope this helps.
    null

  • How to store the images in tables

    how to store the images in tables .what is the use of "clob ,blob"

    Using with the CLOB or BLOB, you can store the images in the table.
    Srini C

  • How to store the flat file data into custom table?

    Hi,
    Iam working on inbound interface.Can any one tell me how to store the flat file data into custom table?what is the procedure?
    Regards,
    Sujan

    Hie
    u can use function
    F4_FILENAME
    to pick the file from front-end or location.
    then use function
    WS_UPLOAD
    to upload into
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'   "Function to pick file
        EXPORTING
          field_name = 'p_file'     "file
        IMPORTING
          file_name  = p_file.     "file
      CALL FUNCTION 'WS_UPLOAD'
       EXPORTING
         filename                       = p_file1
        TABLES
          data_tab                      = it_line
    *then loop at it_line splitting it into the fields of your custom table.
    loop at it_line.
              split itline at ',' into
              itab-name
              itab-surname.
    endloop.
    then u can insert the values into yo table from the itab work area.
    regards
    Isaac Prince

  • How to store the zip file in oracle table?

    hi,
    How to store the zip file in oracle table ?
    is it possible to unzip and read the file ?
    Thanks
    Rangan S

    SQL> DESC BLOB_TABLE;
    Name Type Nullable Default Comments
    A INTEGER Y
    B BLOB Y
    SQL> INSERT INTO BLOB_TABLE VALUES(5,BLOB('MWDIR_TST','TEST.ZIP'));
    INSERT INTO BLOB_TABLE VALUES(5,BLOB('MWDIR_TST','TEST.ZIP'))
    ORA-00904: "BLOB": invalid identifier
    SQL> INSERT INTO BLOB_TABLE VALUES(5,('MWDIR_TST','TEST.ZIP'));
    INSERT INTO BLOB_TABLE VALUES(5,('MWDIR_TST','TEST.ZIP'))
    ORA-00907: missing right parenthesis
    SQL> INSERT INTO BLOB_TABLE VALUES(5,('\\MWDIR_TST\TEST.ZIP'));
    INSERT INTO BLOB_TABLE VALUES(5,('\\MWDIR_TST\TEST.ZIP'))
    ORA-01465: invalid hex number
    SQL> INSERT INTO BLOB_TABLE VALUES(5,('\\MWDIR_TST\TEST.ZIP'));

  • How to store the datas in a .txt file in to a JTable in Java Swing

    Hi sir,
    Here i want to know how to store the data's of a .txt file
    in to a JTable in java swing.
    Where here the .txt file like for eg,spooler.txt is in the server and from there it will come to my client machine what i have to do is to take that .txt file and store the datas of the .txt file
    in a JTable.This is what i want.So pls. do help and provide the code as well.I will be thankful.Since i am involved in a project which involves this it is Urgent.
    Thanx,
    m.ananthu

    You can't just display data from a text file in a JTable. You have you understand the structure of the data so that you can parse the data and create a table model that can access the data in a row/column format. Here is an example of a simple program that does this:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=315172

  • How to find the maximum no of users logged in Database

    Hi All,
    How to find the maximum number of users logged in database at particular time? I can find currently logged users or umber of sessions running on Database but I wanted to find at what time maximum number of users or sessions connected to the DB? is that possible? if yes please help me. thanks.

    Vijay wrote:
    Hi All,
    How to find the maximum number of users logged in database at particular time? I can find currently logged users or umber of sessions running on Database but I wanted to find at what time maximum number of users or sessions connected to the DB? is that possible? if yes please help me. thanks.
    select * from v$resource_limit;Lists about 20 different resources with current, maximum and limit on usage. Session count is one of them. I don't think there's any (simple, efficient) way to determine the maximum number of different users of sessions, though.
    Regards
    Jonathan Lewis

  • How to solve the issue "CUV check user equivalence failed" ?

    Folks,
    Hello. I am installing Oracle 11gR2 RAC using 2 VMs (rac1 and rac2) whose OS are Oracle Linux 5.6 in VMPlayer according to the website http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    In order to install Grid Infrastructure, we need to run Cluster Utility Verification (CUV) at first by running the cammand below:
    [ora11g@rac1 grid]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose
    Its output:
    Performing pre-checks for cluster services setup
    Check: User equivalence for user “ora11g”
    Node Comment
    rac1 failed
    rac2 failed
    Result: PRVF-4007 : User equivalence check failed for user “ora11g”
    ERROR:
    User equivalence unavailable on all the specified nodes
    Verification cannot proceed
    Pre-check for cluster services setup was unsuccessful on all the nodes.
    As you see above, check user equivalence failed. I have run the 4 commands to fix this error as below:
    [ora11g@rac1 /]$ ssh-keygen
    Its output:
    Generating public/private rsa key pair.
    Enter file in which to save the key (/home/grid/.ssh/id_rsa):
    Enter passphrase (empty for no passphrase):
    Enter same passphrase again:
    Your identification has been saved in /home/grid/.ssh/id_rsa.
    Your public key has been saved in /home/grid/.ssh/id_rsa.pub.
    The key fingerprint is:
    0c:10:6c:3b:ae:21:63:64:f8:0d:0e:d8:f0:41:32:ff [email protected]
    [ora11g@rac1 .ssh]$ cat *pub >>authorized_keys
    [ora11g@rac1 .ssh]$ ssh rac1
    Its output:
    The authenticity of host ‘rac1 (127.0.0.1)’ can’t be established.
    RSA key fingerprint is 9d:ae:51:7c:72:81:07:37:31:92:f1:c8:90:bc:52:55.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added ‘rac1′ (RSA) to the list of known hosts.
    Write failed: Broken pipe.
    [ora11g@rac1 .ssh]$ ssh rac1-priv
    Its output:
    The authenticity of host ‘rac1-priv (192.168.137.35)’ can’t be established.
    RSA key fingerprint is 9d:ae:51:7c:72:81:07:37:31:92:f1:c8:90:bc:52:55.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added ‘rac1-priv,192.168.137.35′ (RSA) to the list of known hosts.
    Write failed: Broken pipe.
    After run the 4 commands above, I run the command below again:
    [ora11g@rac1 grid]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose
    Its output is the same:
    PRVF-4007 : User equivalence check failed for user “ora11g”
    ERROR:
    User equivalence unavailable on all the specified nodes
    Verification cannot proceed
    I think the problem is "Broken pipe" and ssh cannot write authorized_keys to the machines.
    My question is:
    Do any folk understand how to solve the issue CUV "check user equivalence failed" for 2 VMs ?
    Thanks.

    Folks,
    Hello. Thanks a lot for replying.
    I have installed Grid Infrastructure a few times. Each time, on step 7 of 9, the installer fixes and checks 2 machines correctly. The entire installation has 3 parts as below:
    1) Install Grid Infrastructure for a Cluster
    2) Execute Root Scripts for Install Grid Infrastructure for a Cluster (script is root.sh)
    3) Configure Oracle Grid Infrastructure for a Cluster that includes NCA, ASMCA, PICA and CVU.
    Each time, on step 8 of 9, the Installer installs Grid Infrastructure for a Cluster successfully that includes "Prepare, Copy files, Link binaries, Setup files and Perform remote operations".
    But when the Installer get to part 3 CVU, it fails and then the Database cannot be installed.
    Deinstall Grid is a very complicated process to do. Because of this reason, we need to run CVU at first to make sure everything is correct for 2 machines before install Grid.
    Even we ignore "user equivalence (ssh)", we don't know whether other items can be passed or not because CVU cannot proceed to check the machines.
    My question is:
    How to have the script "runcluvfy.sh" continue to check the machines while confronting "user equivalence failed" ?

Maybe you are looking for

  • Help on efficient SubVI interaction

    I really could use some advice with how my main program passes data to my SubVi, and how the SubVi handles it.  Right now my main program passes values into the SubVi as fast as it gets it.  The whole point of the SubVI is to perform an integral on m

  • Snapshot too old errror

    Hi Team I have a string lets say by the name v_instr :='insert into temp values(:request_id,deptno)'; IF (l_record_count = 0) THEN -- For BV -- modified by skhairna on 12Jun2008, added order source CSCC+Ciber for Data validation qry_string:= 'select

  • Events in View cluster

    Hi .. i have a scenario where i created a view cluster with two tables/views.. so when i display data .. i dont want to see all the entries of my table.. i want to restrict data according to some conditions? how to do that? i have checked there are s

  • 2 iMac with 1 External HD

    I have an iMac 1.8 and a iMac Core Duo and I was wondering if there is anyway I can connect BOTH to the same external hard drives. I share data alot and I hate having to disconnect and reconnecting. My data is too big to efficiantly go via wireless o

  • Forms9i from Mac OSX

    Hello, Is anyone has an experience with runing Forms9i on a Mac OSX system ? Thanks in advance. Francois.