Populate field based on other lookup field in form

Hello,
In a list item in Infopath, I have a field which looks up a location. You can select the location in a dropdown list.
I want to fill another field with the manager name of the selected location. That manager name is a field in the other form also. In a Sharepoint workflow you can do such a thing (look for a specific list item in another list, based on a selected field in
that list).
To summarize: if I fill the location field with info from another list, I want to automatically fill another field with the manager of that location - which is also in that other list.

Hi  mRRRc1,
For achieving your demand , please take steps in the InfoPath as below:
Open the list which contains the look up field using InfoPath.
Create a Data Connections from  SharePoint list:  Click From SharePoint  List  control under tag DATA -> Input your site URL in the Data Connection Wizard page -> Select the original
list -> Select  Location and Manager field -> Enter a name for this data connection(such as Test) -> Finish.
Create a Rule for Location look up field :   
Condition: LocationLookUp  is not blank
Rule type: Action
Run these actions: Add “Set a field’s value”
Best Regards,
Eric
Eric Tao
TechNet Community Support

Similar Messages

  • Auto population of data to fields based on other input field.

    In overview screen, I have one input field "Business Partner" which contain search help.  As soon as business partner selected from dropdown, the other input fields like Name, Address, City, state should automatically populated without hit of 'ENTER' key.
    I verified with method DO_PREPARE_OUTPUT, but it is triggering only by hitting ENTER key. Is there any event or method which will trigger after business partner selected from dropdown? or any other option to achieve to auto populate the fields.
    Please find attached screen.
    Thanks in advance.

    Hi Narayana,
    You can use the get p method for setting up the values without pressing the enter.
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
        WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
          rv_value = 'AI_SELECT'.( you can give here the event name)
        WHEN OTHERS.
      ENDCASE.
    Define event with the same name above( AI_SELECT),
    You can set the value of fields based on the first field value within this event.
    Thanks,
    Dharmakasi.

  • XSLT List View Web part with Inline Editing changing value for one field changes the other lookup field

    Hi
    It's a bit of a weird one. In an XSLT List View web part when Inline editing is enabled if I change the date column, it changes the lookup field column as well. This behavior only occurs if the lookup list has more than 20 entries. Below 20 and we are
    OK.
    Let me explain by example:
    MileStones List - Having more than 20 items
    Tasks List - having a lookup to the Title field from MileStones list. Also having a due date field.
    Simple web part page with one XSLT List View web part for Tasks having inline editing enabled.
    When I edit the first record's due date and press enter (which saves the changes and moves onto next record) and change the due date on second record without even touching the MileStone field. Press enter to commit changes and you see the milestone changing
    on first record!
    The wierd thing is that if the MileStone list has less than 20 items all works as expected.
    Any pointers will be appreciated
    Thanks

    Hi,
    This is a known limitation when working with complex fields like Lookup field.
    A workaround is that we can avoid using the inline edit feature when there are
    complex fields in a list.
    You can take a look at this KB from Microsoft Support to get more details:
    http://support.microsoft.com/kb/2600186/en-us
    A similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3d369611-ee79-4b5c-86bb-c0f3878cd746/standard-list-view-with-inline-editing-lookup-column-copies-preceding-or-following-items-related?forum=sharepointgeneralprevious
    Thanks
    Patrick Liang
    TechNet Community Support

  • Populating a reqd. selection field based  on other selection field-Reports?

    Hi,
    I have a selection screen wherein there are several fields which are mandatory.Now it has fields like customer Number(KNA1-KUNNR) for which there is a standard help coming in and customer name(KNA1-NAME1).
    My requirement is as soon as user selects a customer no along with customer no customer name field is also populated without performing any action on screen.Now if I write the code as:-
    at selection-screen on p_name1.
    select single name1 into p_name1
                                  from kna1
                                  where kunnr = p_kunnr.
    There are few problems in this:-
    1)It will be executed only when user presses enter or F8 but I dont want that...
    2)Also if I perform any action on screen say pressed enter this code will be executed only when i have put in values in all the MANDATORY fields.So will have to put in a dummy value first since its a mandatory field and then this code will be executed which doesn't serve my purpose..
    Please suggest a way out..Its really urgent..Have to make an object delivery
    Thanks in advance,
    Swati

    Try  this example, this will also automatically update the NAME1 field when user does F4 help on the customer number.
    data: dynfields type table of dynpread with header line.
    data: return type table of ddshretval with header line.
    parameters: p_kunnr type kna1-kunnr,
                p_name1 type kna1-name1,
                p_kdgrp type knvv-kdgrp.
    at selection-screen.
      if not p_kunnr is initial.
        select single name1 into p_name1 from kna1
                  where kunnr = p_kunnr.
      endif.
    * Now do checks
      if p_kdgrp is initial.
        message e001(00) with 'Customer group is not valid'.
      endif.
    at selection-screen on value-request for p_kunnr.
      data: xkna1 type kna1.
      data: xkunnr type kna1-kunnr.
      clear dynfields . refresh dynfields .
      clear return.     refresh return.
      call function 'F4IF_FIELD_VALUE_REQUEST'
           exporting
                tabname           = 'KNA1'
                fieldname         = 'KUNNR'
                dynpprog          = sy-cprog
                dynpnr            = sy-dynnr
                dynprofield       = 'P_KUNNR'
           tables
                return_tab        = return
           exceptions
                field_not_found   = 1
                no_help_for_field = 2
                inconsistent_help = 3
                no_values_found   = 4
                others            = 5.
      read table return with key fieldname = 'P_KUNNR'.
    * Add it back to the dynpro.
      dynfields-fieldname = return-retfield.
      dynfields-fieldvalue =  return-fieldval.
      append dynfields.
      call function 'CONVERSION_EXIT_ALPHA_INPUT'
           exporting
                input  = return-fieldval
           importing
                output = xkunnr.
      clear xkna1.
      select single * into xkna1
             from kna1
            where kunnr = xkunnr.
      dynfields-fieldname = 'P_NAME1'.
      dynfields-fieldvalue = xkna1-name1.
      append dynfields.
    * Update the dynpro values.
      call function 'DYNP_VALUES_UPDATE'
           exporting
                dyname     = sy-cprog
                dynumb     = sy-dynnr
           tables
                dynpfields = dynfields
           exceptions
                others     = 8.
    start-of-selection.
    Regards,
    RIch Heilman

  • PM Notification - Hide fields based on other field's value

    Hello experts,
    I am looking for an user exit which allows me to hide some fields based on other field's value.
    For example, I have field 1 and field 2. When I open my notification, if the value of field 2 is 'aaa', field 1 has to be hidden.
    There should be an user exit but I can't find it...
    Thanks for your help!

    Hi everyone,
    Any thoughts? any help is appreciated...
    Thanks

  • How to display F4 values in one field based on other field selection

    Hi All,
    How to hide a UI element (i.e Link to action) highlited for Normal User and display the same to super user.
    Component Name : /SAPSRM/WDC_DODC_SC_GAF_C
    2.Can i know how to display  the entries in supplier field based on Product category selection.
    Right now all the entries are getting displayed in the supplier field.
    I want to display only entries based on Product category.
    Search Help Name : BBP_BUPA_CLL_PARTNER
    Component Name : /SAPSRM/WDC_DODC_SC_I_LIM
    How to enhance the web dynpro component with the filtered values.
    Regards,
    Krish.

    Hi Ashvin,
                 Thanks for the document. In the search help there is a standard FM which is getting executed.
    Can i enhance that FM or should i copy and edit.
    BBP_F4IF_SHLP_EXIT_CLL_PARTNER
    If i creata a Z FM and make changes how to pass that values to my standard Component View UI Element.
    If not then suggest me some alternative.
    Regards,
    Krish

  • Update a text field based on a SelectOneChoice field

    Hi,
    I have a set of Create, Confirm and Thankyou screens. These screens are bound to a global view object. The create screen has a SelectOneChoice element which allows the user to pick an employee. When the selection is made, I need to display the employee's department in a read only text field below the dropdown. The Employees list(SelectOneChoice) is associated to the read only view object and this view object also has the employee's department information. Im dont know how to set the department name in the text field and refresh the screen. Any help is appreciated. Thank You.

    Frank, thanks for you time. Please see my answers below.
    Hi,
    can you help me creating a reproducable testcase
    based on the HR schema where we have a Departments
    and Employees tables. To understand your usecase I
    have some questions:
    Im not too familiar with HR Schema.
    >
    First of all however, what is a "global view object",
    and is it safe to assume you are using ADF Business
    Components?
    Its the "Globals View Object" as described in the SRDemo for creating a new Service Request and yes I am using ADF Business Components.
    >
    Which version of Oracle JDeveloper do you use ?
    10.1.3
    >
    The usecase I understand is that you have a
    selectOneChoiceList that whenever you select a new
    name should update a read-only text field with the
    department name. Is this correct ? Or is there more
    in it ?
    Heres the complete description. There are 4 fields on the screen
    1. Program Name (text input field, - required field)
    2. Program Category (SelectOneChoice field - required field)
    3. Employee Name (SelectOneChoice field - required field)
    4. Employee Department (Text output field - based on 3 above)
    What you have described above is working for me now, but everytime I select a value for 3, it does the required fields check and gives a message like "1 & 2 are required and a value must be entered", this validation should only occur when my continue button is clicked.
    >
    The department name should be displayed only (read
    only), or is it also bound to what you call "global
    view"?
    Yes its read only but I need to bind to the Globals view as I need to display it in the confirmation screen.
    >
    Also, just to be sure, is the department name part of
    the VO or is it the departmentId?
    The screen is bound to the Globals View, the selectOneChoice values are displayed from another view(EmployeeList view) which has the department name.
    >
    Frank

  • Deriving 1 Value from 2 Fields Based on Values in Fields

    I have a query that needs to return 1 of my values based on the values from 2 fields from 2 tables. However, the value should only be returned in 1 field and one of the fields should be evaluated first. If this first evaluated field has a certain value ('Y') then the other field is ignored.
    To be more clear, per the normal query below, what I want is to somehow, if possible, combine the case t2.el_contr and case t1.contr_type statements so that one field, say: mbr_contr_type_desc returns a value.
    So that if the value of t2.el_contr is 'Y' then 'SUB CHILD' is returned. It is important that this field should be evaluated first (If the value of it is 'Y' then the other field evaluation can be ignored). If this is not 'Y', then t1.contr_type should be evaluated and the values as listed below also returned to mbr_contr_type_desc.
    I know the following isn't correct, but it might better illustrate what I'm trying to do (the normal query is below this)
    case t2.el_contr
    when 'Y' then 'SUB CHILD'
    case t1.contr_type
    when 'A' then '1 PARTY MALE SUB'
    when 'B' then '1 PARTY FEMALE SUB'
    when 'C' then '2 PARTY MALE SUB'
    when 'D' then '2 PARTY FEMALE SUB'
    when 'F' then 'FAMILY MALE SUB'
    when 'G' then 'FAMILY FEMALE SUB'
    end as mbr_contr_type_desc
    In an Access query I would do the following in a column:
    iif([el_contr]='Y',"SUB CHILD',SWITCH([contr_type]="A","1 PARTY MALE SUB",[contr_type]="B" etc.))
    *NORMAL QUERY*
    select t1.ssn
    t1.type,
    t1.grp_id,
    t1.contr_type,
    t2.el_contr,
    case t2.el_contr
    when 'Y' then 'SUB CHILD'
    end as mbr_contr_type_desc_2,
    case t1.contr_type
    when 'A' then '1 PARTY MALE SUB'
    when 'B' then '1 PARTY FEMALE SUB'
    when 'C' then '2 PARTY MALE SUB'
    when 'D' then '2 PARTY FEMALE SUB'
    when 'F' then 'FAMILY MALE SUB'
    when 'G' then 'FAMILY FEMALE SUB'
    end as mbr_contr_type_desc_1
    from member_elig t1
    inner join grp_master t2 on
    t1.grp_id = t2.grp_id

    Perfect!
    Thanks, didn't know that existed. Still learning my way around pl/sql..
    One other (unrelated) question..when i hit the CTRL+LEFT ARROW* button in my SQL window, it will not tab back. This is really annoying! I have looked through PREFERENCES-EDITOR and can't seem to find any setting that will allow this. Do you know of any way to change this so I can tab backwards/fowards through code in the SQL window?
    Thanks for any suggestions!
    *Or CTRL+RIGHT ARROW for that matter..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Can you display info from 2 text fields in 1 other text field in a form?

    Im trying to make a form where you enter an address.  I want that info to display in another part of the same form as well.  When I get to the City and State, I want those to be 2 separate fields where you enter that info.  Down below, I would like those to display in the same field with a comma separating.  I want to do this mostly because you never know what the length of the city name will be and dont wan the state to be so far away to the right of the city jsut to compensate from possible long city names.
    I know how to make it display those field in other parts of the form normally, just not how to double them up.  I figured if the form was named "text1, text2" or "text1+test2", that might work but it didnt

    Im thinking thats how im going to have to do it, i just want it to show up more like
    RICHMOND, VA
    instead of
    RICHMOND                                    VA
    because some cities are way long and im a little crammed for space

  • Table maintenance - auto-populate description field based on other field

    Hello,
    I have a custom table with 2 fields in it. Customer and Name. For customer field, I am using a standard customer search help. My requirement is when I search for a customer and select a customer, how can the name field be auto populated with customer name? I am looking for a best way to do this.
    Thanks,
    AV

    hi adrian,
    One method to achieve this functionality would be  :
    1. Find out the maintenance screen and function group of the table maintenance generator say 0001 and Z03_PRO_FN. ( u can find out by going into tables - > utilities -> tmg - to find Function group. for screen number- from TMG ->utilites->modifications->maintanence screen -> note the screen number).
    2. Go to SE80 and open Z03_PRO_FN screen number 0001.
    3. For field 1 - create a module in Process on Value Request Event in PAI of the maintenance screen ( Similar to any module pool program)
    call the FM F4IF_INT_TABLE_VALUE_REQUEST( In Process on Value request event of field 1 in PAI)
    4. Use FM DYNP_VALUES_Update to read the value of field 1 on the screen ( Because this is before enter is pressed and field 1 on the module pool porogram would not be populated with value ) and update the field 2.
    Regards,
    Sivaganesh

  • New Z-table to auto-populate description based on the key field entered

    Hi Gurus,
    I have to created a z-table, there are several fields however I am interested in only two
    1) VSTEL and 2) PADEST for shipping point and the printer name. Also there are two other fields I have added to the table that are the descriptions for VSTEL and PADEST. Now the requirement is that when the user enteres a value in table maintenance ( sm30)
    for say VSTEL, then its description should auto populate or propose the right values. Same should happen for the PADEST and its description field.
    Thanks.

    Goto the Table maintenance generator of the Table.
    On this screen.
    Environment -
    > Modification -
    > Events
    Create New entry in the table with T = 05 and Z <any name>
    Save it.
    An editor button appears next to the from name.
    Click on it and create an include.
    Write your code in this include...
    select vstel
           padest
           from table XXXX into table I_XXXX
           where vstel = (Z_VSTEL)User enterd VSTEL in module pool.
    If sy-subrc = 0.
          loop at I_XX into wa_xxx.      
              if wa_xxx-vstel = Z_vstel.
                z_padest(Desc field in Tab maint) = wa_XXX-PADEST.  
              endif.
          endloop.
    endif.
    The same logic can be used to get the desc for VSTEL and PDEST.
    You can change this in many ways based on performance.
    The above code is just to give an idea...
    Regards,
    Kittu

  • Can we sort one field based on other field in messsage mapping !!

    Hi Folks,
    I have got source xml with couple of Vendors, Vendors has got promotions on different products with different dates. If I sort date field, product quantity is not sorting. How Can I sort both fields at the same time, if I sort Promotion date field in ascending order, the product quanitity has to sort respectively?
    Any one can help in this please , any links are examples etc..
    Kind Regards
    Thanks in advance.
    San

    Hi Folks,
    I have tried with this function SortbyKey, it always throuing exception. That's the reason I came to you guys. Please have a look following mapping
    ZY2K_DATE    ----> Remove Context -->
                                           Sortbykey  -----> Condition etc.,
    ZA02_QTY   -----> Remove Context -->
    if I try to see display queue on Sortbykey  I am getting ' Exception'
    Exception:[com.sap.aii.mappingtool.tf7.FunctionException: Queues have different lengths in function sortByKey] in class com.sap.aii.mappingtool.flib7.NodeFunctions method sortByKey[[Ljava.lang.String;@5be18f1d, [Ljava.lang.String;@357ae80b, SortComparator.CASE_SENSITIVE, SortOrder.ASCENDING, com.sap.aii.mappingtool.tf7.rt.ResultListImpl@1818459b,
    Source
    <ROOT>
    ...<OUTPUT>          - - - -       0..unbound
    .......<Group_LIN>    - - -        0..unbound
    ..........<Group_ZA>  - - -       0..unbound      
    ..............<D02_ZA>  - - -        0..unbound
    ..................<ZA01>QD</ZA01>
    ..................<ZA02>35.0</ZA02>
    ..................<ZA03>CT</ZA03>
    ..................<Z_Y2K_DATE>20100723</Z_Y2K_DATE>
    ..............</D02_ZA>
    ...........</Group_ZA>
    ........</Group_Lin>
    ....</OUTPUT>
    Target
    ProductDemandInfluencingEventNotification  0..unbound
    ...ProductDemandInfluencingEvent                 1..1
    .......Item                                                           1..unbound
    ..........OrderForecastTimeSeries                     0..1
    ..............Item                                                    1..unbound
    .................ValidityPeriod                                  1..1
    ......................StartDateTime                             0..1
    ......................EndDateTime                               0..1
    .................Quantity                                           1..1
    the above D02_ZA tag sometimes comes more than one QD with different dates. Same dates has to go under one tag with respective quantities!! This is the situation, can any solve this please?
    The target tag "ProductDemandInfluencingEventNotification" will generate based on number of promotions on particular date. Ex: if one vendor has 'n' number products promotions on 3 different dates, 3 "ProductDemandinfluenceevennotifications" has to generate, that three promotion dates and quantities has to respectively.
    That ZA02 (Qty) value has to go Quantity target field.
    Kind Regards
    San

  • Changing value of one input field based on other.

    Hello All,
    I am having this interesting situation with changing a value of a INPUT form in jsp based on another INPUT.
    Lets say my form has 3 INPUT variables.
    1. YEAR (COMBOBOX) (using the SELECT OPTION)
    2. MONTH (COMBOBOX)(using the SELECT OPTION)
    3. TEXT
    If the user sets the year to 2003, I want to show all 12 months. But if the user sets the year to 2004, I want to show only the month of Jan and then not allow the user to change the value.
    I also need both these values to go as form input when the user hits submit.
    After reading the JSP/Javascript issues other people are having with regard to accessing variables across these two(i.e jsp and javascript), it looks like ther is no easy way to achieve this using
    "onChange=setValue()" on the YEAR field.
    What would be the best way to do this?
    Thanks,
    Chhaya

    u can use javascript funtion
    u can pass day month and year wiich will return false if wrong date was selected like leap year,selecting 31 feb etc.
    function validatedate(dd,mm,yy)
              cday=dd
              aday=dd
              cmonth=mm
              cyear=yy
    leapyearcal=cyear%400
              if(leapyearcal==0)
                   leapyear="OK"
              else
              {     leapyearcal=cyear%100
                   if(leapyearcal==0)
                        leapyear="no"
                   else
                        leapyearcal=cyear%4
                        if(leapyearcal==0)
                             leapyear="OK"
                        else
                             leapyear="no"
              if ((cmonth==1)||(cmonth==3) || (cmonth==5) || (cmonth==7) || (cmonth==8)|| (cmonth==10) || (cmonth==12))
                   aday=31
              if ((cmonth==4)||(cmonth==6) || (cmonth==9) || (cmonth==11))
                   aday=30     
              if ((cmonth==2)&& (leapyear=="OK"))
                   aday=29
              else if (cmonth==2)
                        aday=28
              if (cday>aday)
                        return true
              else
                        return false
    }

  • Set lookup field value based on another lookup field using Infopath 2010 rules

    Hello,
    I created 3 lists in SharePoint 2010: Lists A, B and C. The lists B and C where create to work as a drop-down fields in List A. My question: How to I set field C automatically based on what is selected on field B using Rules in Infopath 2010?
    I don't know what to put in the third field:
    Thanks,
    Elvis

    It looks like you edited the question since you first asked it. When I posted my first answer, there were no screenshots in your question and it was not easy to figure out what you want to achieve.
    I asked for clarification. You did not reply to my post.
    Instead it seems that you edited your question and added more detail. This is good, because it helps people to understand what you are asking.
    But when you change a post (YOUR QUESTION) that others have already replied to, you must acknowledge these replies and let people know that you are posting new information.
    In this forum, people get emails when there are new replies to a question. That's how I found back to this thread. I do not get an email if you edit your question to add more information. 
    So, don't be surprised if you edit your question and people still don't respond. The people why have already replied to your question will not be notified if you make changes to your original question. 
    If you want to make sure that everybody who is interested in your question gets notified about new information, please add the information in a new comment to the question, or edit the question and then post a new comment "I added more details".
    This way, everybody already subscribed to your question will be notified about the new content and can help you find a solution. 
    cheers, teylyn

  • In a document library, offering only certain options for fields based on others selected

    Hi, I have a document library, and when someone uploads an item to that library, they are presented with a form to select properties. I have 4 properties I want them to select (really 6, but the first two are Name and Title). The issue is that these 4 properties
    depend on each other in this way:
    1st property: I use a lookup to offer 4 choices, "A" "B" "C" or "D" in a dropdown.
    2nd property: I want to offer the user a choice of 4 items in a dropdown, based on what they chose for the 1st property. (if they chose "A", then offer "1" "2" "3" or "4", if they chose
    "B" offer "5" "6" "7" or "8", etc.)
    3rd property: same thing as above, but now based on what they chose for the 2nd property (if they chose "1", offer "a" "b" "c" or "d", if "5" offer "s" and "t")
    4th property: again based on 3rd property.
    How can I do this? can I write some sort of custom form that can do this?

    What you're trying to do is commonly refererd to as 'Cascading Drop Downs'. These are a common lack in SharePoint.
    There are lots of ways to do that, my favourite to use jQuery or Javascript:
    http://www.sharepointboris.net/js/spcd/

Maybe you are looking for

  • B2B ebMS certificate expiry fix failing in MLR 8

    Hi Gurus, As mentioned in the metalink note 803466.1, that the ebms certificate expiry fix is given in MLR 8. I have applied MLR 8 and trying to send a signed message. I have followed the instructions given in the note. Steps followed were 1) Make a

  • Auto PO document type change

    Hi, We have a problem in conversion of PR to PO through Auto PO (ME59). We want to convert NB doc Type of PR to UMST (Stock PO) Doc Type PO but system is converting NB Doc Type PO (Set default as NB Doc type) which takes a different number range base

  • Menuitem enable Flex 2

    I am positive this has to be simple. How can you programmatically disable/enable a menuitem in Flex 2. I have been beating my head against the wall for two hours now. Any help would be appreciated. Thanks so much for any help! CurtKauf

  • Contact Center query

    Dear Gents, I have a question regarding contact center, let's start with the existing scenario: There is a simple contact center script with multiple menu options for the caller to choose one of them let's say, 1 ènew subscription, 2 è complains, -.e

  • After update to 10.6.3 copy to a Samba share fails

    I have just upgraded to 10.6.3. Since then whenever I copy a file from my iMac to a Samba share on a Linux server I get the error: The operation can't be completed because you don't have permission to access some of the items. No changes were made on