InfoPath: Cascading Fields, need to get ID of final selected list item

I have a two drop down lists in an InfoPath form. They are getting their data from a SharePoint List that has two columns: Objectives, Strategies.
The drop down lists are cascading. So dropdown list 2 (DDL2) values change depending on what dropdown list 1 (DDL1) is set to.
So my list looks like this:
objective 1 - strategy 1
objective 1 - strategy 2
objective 1 - strategy 3
objective 2 - strategy 1
objective 2 - strategy 2
The cascading part in InfoPath works correctly. My problem is that I need to get the ID of the item (strategy) selected in DDL2.
DDL1 gets its values from an external data source (sharePoint list):
Entries: /dfs:myFields/dfs:dataFields/d:SharePointListItem_RW
Value: d:Objective
Display name: d:Objective
DDL2 gets its values from the same external data source (sharePoint list):
Entries: /dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:Strategies[../d:Objective = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:obj]
Strategy is filtered based on Objective = Objective
Value: Strategies
Display name: Strategies
How can I get the ID of the Strategy selected in DDL2 so that I can write it out to another column that SharePoint can use in a workflow. The only value returned in for DDL2 is Strategy, no ID option.

Hi Sonners,
If you want to get the ID of the selected "Strategy" item in DDL2, I think you may need to use the same approach to retrieve the same external data source(SharePoint list have the Objectives and Strategies columns) on another field, then
filter the list item ID based on the selected Strategy value in DDL2 which equals to the strategy value in that external SharePoint list.
Or you don't need to get the list item ID of the "Strategy" selected in DDL2 in InfoPath form, you can directly get the list item ID which is filtered by the condition SharePoint list item "Strategy" column value equals
to the value selected in DDL2 in Desinger workflow, then use the ID value as you want in workflow.
I have tried a similar method for another requirement like this
post, you can take a look.
Thanks
Daniel Yang
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

  • I don't have my phone anymore and need to get access to my contact list. Is there a way to get into my backed up info from the PC I'm using right now?

    I don't have my phone anymore and need to get access to my contact list. Is there a way to get into my backed up info from the PC I'm using right now?

    You can use another iPhone (or iPad) to restore it too, or you can login to www.icloud.com (assumng you weer using iCloud) and export your contacts from there.

  • How do i get current active or selected page item's  reference

    Hi all,
    How do i get current active or selected page item's  reference .
    Please help me

    You can implement a selection suite for your need, this selection suite will be placed into the kLayoutSuiteBoss.
    In this selection suite place a method to give you the UIDRef of the selected pageitem, which you can get by using the method "GetUIDList" of the "ILayoutTarget" interface.
    Manan Joshi
    - Efficient InDesign Solutions -
    MetaDesign Solutions
    http://metadesignsolutions.com/services/indesign-development.php

  • Webpart - Get selected list items

    All,
    I have a SharePoint list and a webpart located above it. In the webpart, I have a button. Is there a way to know the selected list items when user clicks on the button?
    For example, I have a Company list which contains Company A, B, C, and D. User has selected Company A and D. When user clicks on the button of the webpart, could the webpart know that Company A and D has been selected?
    Thanks,

    check this
    http://social.msdn.microsoft.com/Forums/en-US/699166b1-9d98-44bd-b07c-2c508215a11a/how-to-get-the-selectedchecked-list-item-id-in-list-item-view-webpart-using-jquery?forum=sharepointcustomizationprevious
    http://social.msdn.microsoft.com/Forums/en-US/3d15fd44-adb1-4b51-a56e-6811220e5a60/how-to-get-the-selected-item-of-a-sharepoint-list-?forum=sharepointdevelopmentlegacy

  • SP Designer Workflow: How to Get Full URL Path to List Item and inserted same list ITem URL in another list

    Hi,
    I have requirement in Sp Designer 2010,Get List item URL and insert in another list as one column value.When open another list and click on same item  column entry url will show the parent item information.
    Here i have create work flow and insert item URL in another list but cant find appropriate item url information.I can easily make  item url link through String builder in mail body with using current id and predefine link,but
    when try to insert the same type of item link in another list where i cant find string builder for create custom url link,only get valur of Path,URL,Absolute URL and Relative server URL,all these links or not provide me exact
    item link dispaly information.
    So I opened SharePoint Designer and start creating the workflow associated to the list.
    As there is some Field from source related to current item URL I start using it
    Encoded Absolute URL – this one should be the one to use
    Server Relative URL
    URL Path
    Unfortunately, none of these options were providing the correct link. Indeed, these options are providing an incorrect path:
    Encoded Absolute URL
    http://wfe1/Lists/bpf/1_.000
    Server Relative URL
    /Lists/bpf/1_.000
    URL Path
    /Lists/bpf/1_.000
    As you can see, the item URL is composed by an ID while it should be http://wfe1/Lists/bpf/dispform.aspx?id=1
    Hasan Jamal Siddiqui(MCTS,MCPD,ITIL@V3),Share Point Application Developer,TCS

    Unfortunately, [%Current Item:URL%] doesn't seem to be available from a "Site Workflow" associated to a List.   I'm finding less advantages to doing a "Site Workflow" when I don't necessarily need to.  One problem is the workflow is initiating
    twice.   I'm thinking I should have just created the workflow as a a "List Workflow."  
    I am going to try "Association Columns" -- that may work.  Anyone have other suggestions?

  • Passing Multiple Selected List Items to a "New Item" Form in Another List with Multiselect Lookup Field

    Hi!
    Version Info:  SharePoint 2013 Server Standard (*BTW...I do not have access to Visual Studio*)
    I have two lists, let's call them
    -Assets
    -Asset Checkouts
    "Assets" is the parent list, and "Asset Checkouts" has a lookup column (multiselect) which is tied to the serial # column in the "Assets" list.
    Basically, what I need to accomplish is this:  I would like to be able to select multiple list items in the "Assets" list, and create a new item in "Asset Checkouts", and pre-fill the multiselect lookup column in the NewItem form
    for "Asset Checkouts" with the values from the selected items in "Assets".
    Any ideas or suggestions on how to do this would be most appreciated!
    Thanks!

    Hi,     
    According your description, you might want to add new item in "Asset Checkouts" list when selecting items in "Assets" list.
    If so, we can achieve it with SharePoint Client Object Model.
    We can add a button in the "Assets" list form page, when selecting items, we can take down the values of columns of the selected items, then click this button which will create
    new item in "Asset Checkouts" list with the values needed.
    Here are some links will provide more information about how to achieve it:
    Use
    SP.ListOperation.Selection.getSelectedItems() Method to get the list items being selected
    http://msdn.microsoft.com/en-us/library/ff409526(v=office.14).aspx
    How to: Create, Update, and Delete List Items Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx
    Add ListItem with Lookup Field using Client Object Model (ECMA)
    http://notuserfriendly.wordpress.com/2013/03/14/add-listitem-with-lookup-field-using-client-object-model-ecma/
    Or if you just want to refer to the other columns in "Assets" list when add new item in "Asset Checkouts" list, we can insert the "Assets" list web part into the NewForm page
    of the "Asset Checkouts" list, then when we add new item in the "Asset Checkouts" list, we will be able to look through the "Assets" list before we select values for the Lookup column.
    To add web part into the NewForm.aspx, we need to find the button "Default New Form" from ribbon under "List" tab, then we can add web part in the NewForm.aspx.
    In the ribbon, click the button “Default New Form”:
    Then we can add web part into NewForm.aspx:
    Best regards
    Patrick Liang
    TechNet Community Support

  • Based on select list, i need to retrieve values in other select list

    Hi,
    am new to apex using apex3.2, i need to retrieve values in select list based on the other select list vale with out refreshing page.
    ie i have region select list and country select list,in country corresponding region country must be display but with out refreshing page.
    can you please any body guide me.
    Regards
    shashidhar
    Edited by: 871140 on Jul 7, 2011 10:34 PM

    Hi,
    you can use cascading LOV for that, i which the other LOV field will be changing depending upon the selection of other value(which is in LOV).
    http://www.inside-oracle-apex.com/oracle-apex-4-0-cascading-lovsselect-lists/
    Regards,
    Mini
    Mark Answers Promptly

  • Need to do conditional processing based on just-selected list item

    hi -- I have a vertical, unordered list. Each list item branches to a different page when selected.
    When the list item is selected, and before the branch happens, I need to do some conditional processing
    that depends on which list item was just selected.
    How can I get information about which list item was just selected?
    Thanks,
    Carol

    Carol - List items get rendered as links on the page so as soon as you click the link the browser goes there. You can't normally run a process on the current page by clicking that link. I suppose you could build each list item target (defined in the list item definition) to use javascript that submits the page, perhaps passing the item name as the "request" value. Then when the page is submitted, an after-submit process could do whatever you need it to and similarly a branch could be defined for each list item that would take the user to the intended page.
    Scott

  • How to get UIDRef of the selected page item in indesign cs3

    Hi,
        I want to get the UIDRef of the selected page item like Rectangle Frame. Can you show me the complete code snippet to get the UIDRef of selected Rectangle Frame. I need this UIDRef for getting the geometric bounds properties(width and height) of the selected rectangle frame to display the user in dialog box.
    Regards,
    K.Saravanan.

    Hi,
    UIDList selection;
    InterfacePtr<ISelectionManager> pSelectionManager(Utils<ISelectionUtils>()->GetActiveSelection(), ISelectionManager::kDefaultIID);
    if(pSelectionManager == nil){
    break;
    InterfacePtr<ILayoutTarget> pLayoutTarget(pSelectionManager->QueryConcreteSelectionBoss(kNewLayoutSelectionBoss), ILayoutTarget::kDefaultIID);
    if(pLayoutTarget == nil){
    break;
    selection = pLayoutTarget->GetUIDList(kDontStripStandoffs);
    Then, you can use this interface "IGeometry" to get information about spline size.
    InterfacePtr<IGeometry> pGeometry(selection.GetRef(i), IGeometry::kDefaultIID);
    if(pGeometry== nil){
    break;
    PMRect splineBounds = pGeometry->GetStrokeBoundingBox();
    PMReal width = splineBounds.Height();
    PMReal hight = splineBounds.Width();
    Regards,

  • How do I get the list index for the selected list item

    How can I obtain the list index for the currently selected
    element in a list item? I'm trying to move the label and value
    from on list box to another by using the add_list_element built-
    in and it requires the list index.
    Thanks for your help...

    Hi,
    You can`t get the Index for the selected item..
    you can get the Value of then Tlist using :Block.ListName .
    maybe theis code will help you..
    PROCEDURE pr_PasarElementos(ls_Origen           varchar2,                    ls_destino          varchar2,          cValor                    varchar2 default null) IS
         nCont_Orig     number := 0;
         nCont_Dest     number := 0;
    begin
    nCont_Orig := GET_LIST_ELEMENT_COUNT(ls_Origen);          nCont_Dest := GET_LIST_ELEMENT_COUNT(ls_destino);
         Add_List_Element(ls_destino,nCont_Dest+1,cValor,cValor);
         for rec_Orig in 1..nCont_Orig loop
         if GET_LIST_ELEMENT_VALUE(ls_Origen,rec_Orig) = cValor then
         delete_list_element(ls_Origen,rec_Orig);
         end if;
         end loop;
    end;
    you can call the procedure with :
    pr_pasarElementos('control.ls_activos','control.ls_inactivos',:CONTROL.ls_activos);
    here I`m working with the Value equal to the Label... you would need to look for the Label of the origin (ls_Origen) list using the Value (cValor) you already have.
    I hope this help you.

  • How do you get the value of a selected list item?

    I have a drop-down list that the user can choose from. How do I get the value of what they selected? I thought I could do this by using the NAME_IN function, but I'm getting FRM-40105 Unable to resolve reference to item X. I don't know what I'm doing wrong.
    Thanks!

    Hi,
    You can use an WHEN-LIST-CHANGED trigger, attached to the list-item itself. And, in this trigger, you can use the name of the item to refer its value.
    For example:
    :block_name.list_item_name
    John

  • Getting 'variable not in select list' error after extending VO

    Hi,
    My page is based on two VO. one VO has all transient attribute(LearnerSearchCritVO) and used to capture Search Criteria, The other VO is used for query(LearnerSearchVO).
    I have exteneded LearnerSearchCritVO to add 4 new additional Transient attributes
    and LearnerSerachVO and its IMPL class to add additional where clause.
    After substitution and personalization when I am querying through page I am getting the following error -
    ## Detail 0 ##
    java.sql.SQLException: ORA-01007: variable not in select list
    The query is working fine at backend and the same thing was working fine before instance is refreshed.
    I am not able to find why this error is coming.
    please help me out to sort this issue.

    Hi All
    Sorry to bring this one up again, but I've had a bit of a look around and done as much as I can based on the information given in this and other threads on the subject.
    I'm getting the java.sql.SQLException: ORA-01007: variable not in select list error from my extended VO/substitution.
    The query is based on a view for easy editing after deployment, so could that have anything to do with it?
    Here's the query from the error message:
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement:
    SELECT * FROM (SELECT
    SSH.FULL_NAME,
    SSH.ASSIGNMENT_NUMBER,
    SSH.JOB,
    SSH.GRADE,
    SSH.ANNUALIZED_SALARY,
    SSH.CURRENCY,
    SSH.CHANGE_DATE,
    SSH.SALARY_BASIS,
    SSH.PERSON_ID,
    SSH.ASSIGNMENT_ID,
    SSH.SUPERVISOR_ID,
    SSH.LAST_CHANGE_DATE,
    SSH.PAYROLL_NAME,
    SSH.NEXT_CHANGE_DATE,
    SSH.EMPLOYEE_NUMBER,
    SSH.CWK_NUMBER,
    SSH.PERSON_TYPE,
    SSH.EFFECTIVE_DATE,
    SSH.SUPERVISOR_ASSIGNMENT_ID,
    SSH.LEGISLATIONCODE,
    SSH.MANAGER_ENABLED
    FROM XX_SAL_SUP_HRCHY_VO_V SSH) QRSLT
    WHERE (((:1 = SUPERVISOR_ID)
    AND (:2 = EFFECTIVE_DATE)
    AND (:3 = SUPERVISOR_ASSIGNMENT_ID
    OR hr_general2.supervisor_assignments_in_use = 'FALSE')))
    ORDER BY FULL_NAME
    So... What's missing?
    Any help appreciated.
    CK

  • Need to get a dependent dependent objects list on a table

    Hi
    I am trying to get the dependent object list on a table like triggers ,indexes,synonyms etc.. through PL/SQL code.
    Example :
    For table per_all_people_f we need to list how many triggers are there.. and what all those... etc.
    Can anyone help on this issue?
    Thanks
    Preeti

    SQL> exec dbms_utility.get_dependency('TABLE', 'SCOTT', 'EMP');
    DEPENDENCIES ON SCOTT.EMP
    *TABLE SCOTT.EMP()
    *   PROCEDURE SCOTT.P1()
    *   PACKAGE SCOTT.PACK_CUR()
    *      PACKAGE BODY SCOTT.PACK_CUR()
    *   VIEW SCOTT.EMP_VIEW()
    *   PACKAGE SCOTT.PACK_CUR1()
    *      PACKAGE BODY SCOTT.PACK_CUR1()
    *   PACKAGE BODY SCOTT.MANAGE_EMPS()
    *   PROCEDURE SCOTT.DP_PR1()
    *   FUNCTION SCOTT.TESTFUN()
    *      PROCEDURE SCOTT.P1()
    *   PROCEDURE SCOTT.CALC_BONUS()
    *   VIEW SCOTT.TESTVEW()
    *   FUNCTION SCOTT.SP_LISTEMP()
    *   VIEW SCOTT.EMP1()
    *   VIEW SCOTT.VW_RR()
    *   TRIGGER SCOTT.TR_EMP_REC()
    PL/SQL procedure successfully completed.

  • Dreamweaver cc 2014 : why do I get error 404 on menu list item on only one list item?

    I have a list on my menu that only the last item 2009-2014 will not function. All other links in the list work. coding is the same on all items but having been trying for days and unable to get 2009-2014 to work no matter how many times I create and recreate it.
    url: www.strangersrestbc.com  (thought I had posted this originally under DW CC 2014 but can't find my original discussion)
    thanks,
    howard

    Looks like you either...
    1. Haven't uploaded the re4.jpg image
    2. Uploaded it to the wrong location (the link says it should be in your site root)
    3. Uploaded the image with the wrong name (RE4.jpg and re4.jpg are the same on your local system, but on a server they're separate files)
    Actually, #3 is true, I found the image as RE4.jpg, but the link is to re4.jpg
    To avoid this in the future, make sure your files all use lowercase, alpha-numeric names. Avoid using spaces (use hyphens and underscores instead) and avoid special characters like #&$ all together.

  • How to get the value from select list to text box

    Hi,
    I have a select list i want to retrieve the value from select list to text box.
    How can i do that???
    Regards,
    Sakthi.

    Hi Sakthi,
    Yo can use the Java script for that..
    Dynamically the value will come into text box.
    Use the below script.
    <script type="text/javascript">
    function disFormItems()
    var lReturn = $v(here your select list name)
    alert(lReturn);
    document.getElementById(here your text box name).value =lReturn; }
    </script>Cheers,
    Shan

Maybe you are looking for

  • My ipod touch was stolen how do i get my itunes back

    my ipod was stolen how do i get my itunes back

  • Websites are rendering at 665px wide on a 1024x768 resolution

    I was looking into a complaint about site rendering at 1024x768 screen resolution and upon inspecting the web page with the window maximized and zoom set to 100%, the HTML and BODY tags are showing to only be 665px wide. They should be rendering clos

  • IBooks outside of US

    The disclaimer says that iBooks is available only in the U.S. Does anyone know what this exactly means? Does this mean that iBooks is available for download in the U.S. (but you can still read the books you buy if you flew to, let's say, Europe) or d

  • Plugin check reports outdated Java on Mac, but Apple update says it is up to date

    This is on a Mac I used the "Plugin check" to make sure all the plug-ins were up to date. It said the Java plugin needs to be updated. That takes me to the Java page, which says that Apple supplies its own version of Java and to use Apple Update. App

  • ITUNES ERASED MY SONGS. PLEASE HELP

    I had gotten some songs from Limewire and I wanted to put them in my dad's ipod mini because I lost my ipod at an airport. When i opened itunes everything was erased-my (and my dad's) songs,music videos and playlists.Everything. I plugged in the ipod