<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Book Sample Clarification</title><link>https://www.infopathdev.com:443/forums/thread/15706.aspx</link><pubDate>Fri, 26 Aug 2005 21:27:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15706</guid><dc:creator>andywt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15706.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15706</wfw:commentRss><description>I'm sure you are glad to hear that I finally got it working using the web service interface to sharepoint.  This is the code that was based on the book that I finally got adapted to my use:&lt;br /&gt;listName = "{B6FB0ADA-7507-44C7-A378-73A92B5771BE}"&lt;br /&gt;listView = "{06A69E6C-E9E2-409D-BD4E-CAB0DB7FDB31}"&lt;br /&gt;istsservice = New lists.Lists&lt;br /&gt;listsservice.Credentials = System.Net.CredentialCache.DefaultCredentials&lt;br /&gt;&lt;br /&gt;node = New XmlDocument&lt;br /&gt;node.LoadXml("" _&lt;br /&gt;    + "&amp;lt;Batch OnError='Continue' ListVersion='1' ViewName='{DE609481-2F03-40F3-BA47-374D6631E6DE}'&amp;gt;" _&lt;br /&gt;    + " &amp;lt;Method ID='1' Cmd='Update'&amp;gt;" _&lt;br /&gt;    + "   &amp;lt;Field Name='ID'&amp;gt;" + categoryCode + "&amp;lt;/Field&amp;gt;" _&lt;br /&gt;    + "   &amp;lt;Field Name='LastNumUsed'&amp;gt;" + projectNum + "&amp;lt;/Field&amp;gt;" _&lt;br /&gt;    + " &amp;lt;/Method&amp;gt;" _&lt;br /&gt;    + "&amp;lt;/Batch&amp;gt;")&lt;br /&gt;' call the web service&lt;br /&gt;  res = listsservice.UpdateListItems(listName, node)&lt;br /&gt;&lt;br /&gt;What drove me nuts as the use of "ID".  This is a mandatory field that contains the item #.  I was trying to use another field in the item and that did not work.  Thanks for the suggestions and your patience.</description></item><item><title>Re: Book Sample Clarification</title><link>https://www.infopathdev.com:443/forums/thread/15705.aspx</link><pubDate>Fri, 26 Aug 2005 14:58:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15705</guid><dc:creator>andywt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15705.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15705</wfw:commentRss><description>If I am not mistaken the code sample you suggest are for a FORM document.  I am wanting to update a Sharepoint LIST.  Am I missing something?</description></item><item><title>Re: Book Sample Clarification</title><link>https://www.infopathdev.com:443/forums/thread/15704.aspx</link><pubDate>Thu, 25 Aug 2005 23:19:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15704</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15704.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15704</wfw:commentRss><description>hi andywt,&lt;br /&gt;  You will need to create an IXMLDomDocument2&lt;br /&gt;&lt;br /&gt;Dim projectCategory As IXMLDOMDocument2 = e.XDocument.GetDOM("Project Category")&lt;br /&gt;projectCategory.setProperty("SelectionNamespaces", "Namespace")&lt;br /&gt;&lt;br /&gt;Here instead of "NameSpace" copy all of the namespaces like xmlns:xsi="..." from your secondary dom over to here. For details on the syntax look at the top at how the namespaces are set for the main dom. This will be at the top of your code file and will be autogenerated by InfoPath.&lt;br /&gt;&lt;br /&gt;Now get the correct XPath of the node that you are trying to access - You can do that by looking at the node structure in the data source pane.&lt;br /&gt;&lt;br /&gt;and write this &lt;br /&gt;projectCategory.selectSingleNode(...);&lt;br /&gt;&lt;br /&gt;and it should work.&lt;br /&gt;&lt;br /&gt;Shanthi&lt;br /&gt;InfoPath Dev India</description></item><item><title>Re: Book Sample Clarification</title><link>https://www.infopathdev.com:443/forums/thread/15703.aspx</link><pubDate>Thu, 25 Aug 2005 18:13:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15703</guid><dc:creator>andywt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15703.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15703</wfw:commentRss><description>Thanks for the link. I'm still missing something (sorry to be so difficult) but the example in the book is:&lt;br /&gt;id = CreateTask( _&lt;br /&gt;thisXDocument.DOM.selectSingleNode("/my:myFields/my:title").text, _&lt;br /&gt;thisXDocument.DOM.selectSingleNode("/my:myFields/my:body").xml)&lt;br /&gt;which gets the Main document. &lt;br /&gt;&lt;br /&gt;If you had a secondary document named "secDoc" with the two fields &lt;br /&gt;title-"/my:Fields/my:title" &amp; body-"my:Fields/my:body". What would the equivalent CreateTask( function above be?  Just to be clear the secondary document is a Sharepoint LIST not a form.</description></item><item><title>Re: Book Sample Clarification</title><link>https://www.infopathdev.com:443/forums/thread/15702.aspx</link><pubDate>Thu, 25 Aug 2005 11:39:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15702</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15702.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15702</wfw:commentRss><description>Hi,&lt;br /&gt;Please refer your another post about how to get secondary dom&lt;br /&lt;a target="_blank" href=http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=728&gt;http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=728&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Agni&lt;br /&gt;InfoPath Dev India</description></item><item><title>Book Sample Clarification</title><link>https://www.infopathdev.com:443/forums/thread/15274.aspx</link><pubDate>Thu, 25 Aug 2005 00:35:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15274</guid><dc:creator>andywt</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15274.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15274</wfw:commentRss><description>I have moved on to more difficult challenges with Infopath and&lt;br /&gt;Sharepoint and have found the examples in Chapter 9 very helpful.  I am trying to adapt the example on page 296 "Extending Sharepoint Submit Example to Create a Task".  My scenario is a bit different than the example in that the Sharepoint List is a Secondary Data Source instead of the Main one.&lt;br /&gt;&lt;br /&gt;I am having trouble with developing the equivalent code in step 14 for the "thisXDocument.DOM.selectSingleNode" as this snares the nodes from the Main document. How do I get the secondary nodes?&lt;br /&gt;&lt;br /&gt;Can you pass me a tip?   Thanks in advance for your help!</description></item></channel></rss>