in

InfoPath Dev

Multi Select in Web Browser Form Idea

Last post 07-30-2007 04:07 AM by Matt Faus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-19-2007 06:58 AM

    Multi Select in Web Browser Form Idea

    So, I've got an idea for a multi-select option in a browser enabled form.  Let me lay it out and see what you guys think.

    I've got a Sharepoint list, with all of the possible options, that I want people to be able to select.

    At this point on the form, I create a data connection to the list.  I also create a repeating section with two fields: one for the text and one for the checkbox.

    On the form load (this is where things get a bit sketchy), I programmatically get the items from the Sharepont list.  I add new rows to the repeating section for each item in the list, and then after it's all said and done, I lock the list so the user can't add any more rows.

    My two big problems:

    1.) How can I use the data connections on the form to access the items in the Sharepoint List.
    2.) How do I create the rows themselves within the repeating section (this is actually less pressing, since I've seen some other articles here for it)

    Anyone have any thoughts on this?

  • 07-30-2007 04:07 AM In reply to

    Re: Multi Select in Web Browser Form Idea

    Hi bafadam and welcome to the forums!

    This is an interesting idea, but I thought code was not allowed in browser-enabled forms?  I have little to no experience in this area, so let me know if I'm wrong.

     To get the items from the SharePoint list you should be able to add a secondary data connection that queries the list and then populates those items into a secondary DOM.  Once the items are in the secondary DOM you should be able to copy them over into your Main DOM via code.  Like you said, copying rows from one DOM to another is a pretty straightforward task and has been talked about numerous times on the forum.

     Let us know how things go!

    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2007 Qdabra Software. All rights reserved.
View our Terms of Use.