get values from Multiple Selection List(SDS) to another Multiple selection list(mainDS) - InfoPath Dev
in

InfoPath Dev

get values from Multiple Selection List(SDS) to another Multiple selection list(mainDS)

Last post 01-06-2016 07:24 AM by MstRa. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 12-23-2015 08:39 AM

    • MstRa
    • Not Ranked
    • Joined on 12-16-2015
    • Posts 7

    get values from Multiple Selection List(SDS) to another Multiple selection list(mainDS)

    Hellooo!! I have in my form 3 multiple selection list from a secondary ds with data. Then in my Main form I have 3 Multiple selection list ( it will be the same, I want to update them). Well when I chose an item from a DropdownList(from the SD) I get all the info, id, names, but... when I try to get the Values from my Multiple Selection(SedondaryDS) I just get the 1st one. using this method /////////// xdXDocument:GetDOM("RegulatoryQuestionsQuickEdit")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:group1/Value[. != "" and ../../d:ID = current()/../my:ID] /////// xdXDocument:GetDOM("RegulatoryQuestionsQuickEdit")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:group1[Value[. != ""] and ../d:ID = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:ID] I upload the images, the problem is that the Multiple selection from SDS has 2 values in YES, and only appear 1, and when i select the group, It create a new option.
  • 12-30-2015 08:57 AM In reply to

    Re: get values from Multiple Selection List(SDS) to another Multiple selection list(mainDS)

     Can you post a bit more of your code? Basically, you need to get all the value nodes for your source using the Select method, then you'll need to insert new nodes into your destination and set their values. This may help: http://stevemannspath.blogspot.com/2010/09/infopath-20072010-populate-repeating.html

    Hilary Stoupa

  • 01-04-2016 06:46 AM In reply to

    • MstRa
    • Not Ranked
    • Joined on 12-16-2015
    • Posts 7

    Re: get values from Multiple Selection List(SDS) to another Multiple selection list(mainDS)

    I cant use code, because its from a sharepoint list form. When I select an item from the list and select EDIT ITEM, I can do everything correctly, but when I try to get the values from a different ID y just get 1 Value in my Multiple repeating table, as appear in the image. And when I select the Group instead of Values, i Get all the values, but in a New Option in the Multiple selection list. Like: YES Site A SIte B SIte C Site A Site B Is there a rule or something to identify that there are 2 options selected.
  • 01-05-2016 07:05 AM In reply to

    • MstRa
    • Not Ranked
    • Joined on 12-16-2015
    • Posts 7

    Re: get values from Multiple Selection List(SDS) to another Multiple selection list(mainDS)

    I try to get all my data from a repeating table of the secondary data, and with some rules I updated, but when I try to change the MultiplaSelection list I got an error abour microsoft schemas 2009. The thing is i want to create some kind of quick edit, I want to modify the already items on the list and I have multiple selection list fields.
  • 01-05-2016 07:42 AM In reply to

    Re: get values from Multiple Selection List(SDS) to another Multiple selection list(mainDS)

    Sorry - I'm having a hard time understanding. Maybe you can attach some screenshots or a sample form under the Options tab in a reply?
    Hilary Stoupa

  • 01-05-2016 09:14 AM In reply to

    • MstRa
    • Not Ranked
    • Joined on 12-16-2015
    • Posts 7

    Re: get values from Multiple Selection List(SDS) to another Multiple selection list(mainDS)

    What I try to do is to Update an item that has a Multiple Selection List. I cant use QuickEdit because it hasn filters. I try to use a repeating table from my SecondaryDB but i got an schema microsroft 2009 error, when i selected a different option in the Multiple Selection List from the repeating table. WHEN I GET GROUP FROM MY MULTIPLE SELECTION IN SECONDARY DATA: xdXDocument:GetDOM("RegulatoryQuestionsQuickEdit")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:group1[Value[. != ""] and ../d:ID = xdXDocument:get-DOM()/dfs:myFields/dfs:dataFields/my:SharePointListItem_RW/my:ID] //// WHEN I GET VALUES FROM MY MUTIPLE SELECTION IN SECONDARY DATA xdXDocument:GetDOM("RegulatoryQuestionsQuickEdit")/dfs:myFields/dfs:dataFields/d:SharePointListItem_RW/d:group2/Value[current()/../my:ID = ../../d:ID]
  • 01-06-2016 07:24 AM In reply to

    • MstRa
    • Not Ranked
    • Joined on 12-16-2015
    • Posts 7

    Re: get values from Multiple Selection List(SDS) to another Multiple selection list(mainDS)

    I think i found some kind of solution, the problem is that i dont know how the rules are set to move from a listbox to another listbox. Can you help me. pls https://www.youtube.com/watch?v=H09KGvd3vZw \\\\\\ https://www.youtube.com/watch?v=dsC4Lk3D8Fs \\\\\ Like in the videos i want to update and create, also move from a listbox to another listbox. :( I try it, but in Listbox you can only have 1 choice I need multiple selection. I need to create a QuickEdit, but with connections and filters.
Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.