<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Populate SharePoint List w/ InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/2081.aspx</link><pubDate>Tue, 04 Apr 2006 06:30:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2081</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2081.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2081</wfw:commentRss><description>Hi Cheri,&lt;br /&gt;   Not sure if you posted else where. You can have a repeating optional section. Jus set minoccurs to be zero on the node that is repeating and you will be able to delete all sections mapped to that node from the view.&lt;br /&gt;&lt;br /&gt;Hope this helps!</description></item><item><title>Re: Populate SharePoint List w/ InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/2080.aspx</link><pubDate>Thu, 30 Mar 2006 23:13:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2080</guid><dc:creator>sps232</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2080.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2080</wfw:commentRss><description>Thanks for your help.  Matt, your how-to was great!  I am a wanna be developer, so coding is still not the best path for me but I was able to change the templates you provided as needed.  So for now, prob solved :~)&lt;br /&gt;&lt;br /&gt;If I have another question regarding whether there is such a thing as a repeating optional section...do I start another thread? (this is why i am still in the newbie area)&lt;br /&gt;&lt;br /&gt;Thank you both for your help!&lt;br /&gt;&lt;br /&gt;Cheri</description></item><item><title>Re: Populate SharePoint List w/ InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/2079.aspx</link><pubDate>Fri, 24 Mar 2006 23:26:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2079</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2079.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2079</wfw:commentRss><description>Hi Cheri,&lt;br /&gt;&lt;br /&gt;Check out this HowTo that I wrote explaining what I think is the best way to do this.&lt;br /&lt;a target="_blank" href=http://infopathdev.com/howto/tutorials/default.aspx?i=7bc880f391b84ea9b3b45c6fbecc07c6&gt;http://infopathdev.com/howto/tutorials/default.aspx?i=7bc880f391b84ea9b3b45c6fbecc07c6&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This HowTo describes a technique which uses zero code which makes it extremely extensible and very straightfoward.&lt;br /&gt;If you have any questions about the HowTo, feel free to post back, but please continue this discussion&lt;br /&gt;on this thread:&lt;br /&lt;a target="_blank" href=http://infopathdev.com/forums/topic.asp?TOPIC_ID=1757&gt;http://infopathdev.com/forums/topic.asp?TOPIC_ID=1757&lt;/a&gt;</description></item><item><title>Re: Populate SharePoint List w/ InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/2078.aspx</link><pubDate>Fri, 24 Mar 2006 19:19:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:2078</guid><dc:creator>Stephanie Cantwell</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/2078.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=2078</wfw:commentRss><description>Hi Cheri, &lt;br /&gt;&lt;br /&gt;Welcome to the forum.  I am not sure what you need to do with the code you have posted.  &lt;br /&gt;Here are two threads to get you started:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1999&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1999&lt;/a&gt;&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1947&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=1947&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Please post back if I don't answer your question right.</description></item><item><title>Populate SharePoint List w/ InfoPath Form</title><link>https://www.infopathdev.com:443/forums/thread/1215.aspx</link><pubDate>Fri, 24 Mar 2006 16:59:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1215</guid><dc:creator>sps232</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1215.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1215</wfw:commentRss><description>Hi, I am new to InfoPath and this forum.  I was wondering if anyone could help me out with using InfoPath to populate a list in SharePoint.  I have found the info below, but wanted to ping the forum to see if there was a better way of doing this.  &lt;br /&gt;&lt;br /&gt;&lt;a href='http://groups.google.com/group/microsoft.public.infopath/browse_thread/thread/ebf9f9589f8be629/17a326c681e1a5c6?lnk=st&amp;q=populate+list+in+sharepoint+from+infopath&amp;rnum=1&amp;hl=en#17a326c681e1a5c6' target='_blank' title='http://groups.google.com/group/microsoft.public.infopath/browse_thread/thread/ebf9f9589f8be629/17a326c681e1a5c6?lnk=st&amp;q=populate+list+in+sharepoint+from+infopath&amp;rnum=1&amp;hl=en#17a326c681e1a5c6'&lt;a target="_blank" href=http://groups.google.com/group/microsoft.public.infopath/browse_thread/thread/ebf9f9589f8be629/17a326c681e1a5c6?lnk=st&amp;q=populate+list+in+sharepoint+from+infopath&amp;rnum=1&amp;hl=en#17a326c681e1a5c6&gt;http://groups.google.com/group/microsoft.public.infopath/browse_thread/thread/ebf9f9589f8be629/17a326c681e1a5c6?lnk=st&amp;q=populate+list+in+sharepoint+from+infopath&amp;rnum=1&amp;hl=en#17a326c681e1a5c6&lt;/a&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; From:  jupite...@gmail.com - view profile &lt;br /&gt;Date:  Tues, Oct 11 2005 3:32 am  &lt;br /&gt;Email:   jupite...@gmail.com &lt;br /&gt;Groups:   microsoft.public.infopath &lt;br /&gt;Not yet ratedRating:    &lt;br /&gt;show options  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reply to Author | Forward | Print | Individual Message | Show original | Report Abuse | Find messages by this author  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After days and days of search, test, of suffering and crying, of tears, &lt;br /&gt;of great moment of hope and despair, I finally managed to find the &lt;br /&gt;solution to populate data from an Infopath form to a Sharepoint list &lt;br /&gt;(task list, for instance). &lt;br /&gt;&lt;br /&gt;First of all: the example you find under /_vti_bin/Lists.asmx is really &lt;br /&gt;really bad made. It's absolutly unclear. You don't need to specify an &lt;br /&gt;XSL schema, and the XML file asked is the same "Batch file" you create &lt;br /&gt;when you use UpdateListsItems using VB.NET. The lack of documentation &lt;br /&gt;about this is really a SHAME!! Now, lady and gentlemen, there's the &lt;br /&gt;final code: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;function CTRL54_5::OnClick(eventObj) &lt;br /&gt;{ &lt;br /&gt;        var objField1; &lt;br /&gt;        objField1=XDocument.DOM.selectSingleNode("//my:myFields/my:Objet").text; &lt;br /&gt;        XDocument.UI.Alert(objField1); &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        var liste = &lt;br /&gt;XDocument.DOM.selectNodes("//my:myFields/my:group15/my:Activities"); &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        //The XML doc contains the same batch type as the VB.NET way of using &lt;br /&gt;UpdateListItems &lt;br /&gt;        var xmlDoc = ""; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        //The soap request is adapted from the example in /_vti_bin/Lists.asmx &lt;br /&gt;        var soapRequest = ""; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        //Using a xmlHttpRequest allow to don't bother about the precise &lt;br /&gt;formatting of the request, letting Infopath care about that. &lt;br /&gt;        var xmlHttpRequest; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        //Here's our batch xml file. Very simple. Just add "Field" parameter &lt;br /&gt;to fill more fields (here's just an example) &lt;br /&gt;        xmlDoc += "&amp;lt;Batch&amp;gt;"; &lt;br /&gt;        xmlDoc += "&amp;lt;Method ID='1' Cmd='New'&amp;gt;"; &lt;br /&gt;        xmlDoc += "&amp;lt;Field Name='Title'&amp;gt;Test&amp;lt;/Field&amp;gt;"; &lt;br /&gt;        xmlDoc += "&amp;lt;/Method&amp;gt;"; &lt;br /&gt;        xmlDoc += "&amp;lt;/Batch&amp;gt;"; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        //Prepare SOAP request. Notice that no schema is specified. The &lt;br /&gt;headers will come in the xmlHttpRequest object. &lt;br /&gt;        soapRequest += "&amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;"; &lt;br /&gt;        soapRequest += "&amp;lt;soap:Envelope &lt;br /&gt;xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' &lt;br /&gt;xmlns:xsd='http://www.w3.org/2001/XMLSchema' &lt;br /&gt;xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'&amp;gt;"; &lt;br /&gt;        soapRequest += "  &amp;lt;soap:Body&amp;gt;"; &lt;br /&gt;        soapRequest += "    &amp;lt;UpdateListItems &lt;br /&gt;xmlns='http://schemas.microsoft.com/sharepoint/soap/'&amp;gt;"; &lt;br /&gt;        soapRequest += "      &amp;lt;listName&amp;gt;test&amp;lt;/listName&amp;gt;"; //Change here the &lt;br /&gt;name of the list to update &lt;br /&gt;        soapRequest += "      &amp;lt;updates&amp;gt;" + xmlDoc + "&amp;lt;/updates&amp;gt;"; //Just &lt;br /&gt;specify your Batch xml variable created before &lt;br /&gt;        soapRequest += "    &amp;lt;/UpdateListItems&amp;gt;"; &lt;br /&gt;        soapRequest += "  &amp;lt;/soap:Body&amp;gt;"; &lt;br /&gt;        soapRequest += "&amp;lt;/soap:Envelope&amp;gt;"; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        //objXMLHttp. Just a nice try&amp;catch to deal with eventual problems. &lt;br /&gt;        try &lt;br /&gt;        { &lt;br /&gt;                var xmlHttpRequest = new ActiveXObject("MSXML2.XMLHTTP.5.0"); &lt;br /&gt;        } &lt;br /&gt;        catch(ex) &lt;br /&gt;        { &lt;br /&gt;                XDocument.UI.Alert("Could not create MSXML2.XMLHTTP.5.0 object.\r\n" &lt;br /&gt;+ ex.number + " - " + ex.description); &lt;br /&gt;                return false; &lt;br /&gt;        } &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        //Send datas to Sharepoint. Here we're specifying headers. &lt;br /&gt;Content-Length is not mandatory. &lt;br /&gt;        xmlHttpRequest.open("POST", &lt;br /&gt;"http://yoursharepointserver/_vti_bin/Lists.asmx", false); //Just &lt;br /&gt;specify here the complete address of the list service &lt;br /&gt;        xmlHttpRequest.setRequestHeader("Content-Type", "text/xml; &lt;br /&gt;charset=utf-8"); &lt;br /&gt;        xmlHttpRequest.setRequestHeader("Content-Length",1); &lt;br /&gt;        xmlHttpRequest.setRequestHeader("SOAPAction", &lt;br /&gt;"http://schemas.microsoft.com/sharepoint/soap/UpdateListItems"); &lt;br /&gt;        xmlHttpRequest.send(soapRequest); &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks for any help you can give me on this.</description></item></channel></rss>