<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Update a specified SharePoint List Item via code</title><link>https://www.infopathdev.com:443/forums/thread/96625.aspx</link><pubDate>Tue, 25 Mar 2014 02:50:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96625</guid><dc:creator>Ruskin11</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96625.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=96625</wfw:commentRss><description>&lt;font size="2"&gt;&lt;p&gt; The following is some sample code which I am using to add to the item&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; ListName = root.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:myFields/my:ListName&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; taskNumberStage = root.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:myFields/my:TaskNumberStage&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; groupTaskNumber = root.SelectSingleNode(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/my:myFields/my:GroupTaskNumber&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).Value;&lt;/font&gt;&lt;/p&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;&lt;p&gt;XPathNavigator batch = DataSources[&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Submit&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].CreateNavigator()&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;/font&gt;&lt;font size="2"&gt;batch.SelectSingleNode(&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;TaskNumberStage&amp;#39;]&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(taskNumberStage);&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;                    batch.SelectSingleNode(&lt;/p&gt;&lt;/font&gt;&lt;p&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;GroupTaskNumber&amp;#39;]&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(groupTaskNumber);&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font size="2"&gt;
&lt;/font&gt;&lt;/p&gt;&lt;font size="2"&gt;&lt;p&gt;                    batch.SelectSingleNode(&lt;/p&gt;&lt;p&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;/Batch/Method/Field[@Name=&amp;#39;TaskTitle&amp;#39;]&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, NamespaceManager).SetValue(taskTitle);&lt;/font&gt;&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;p&gt;DataConnections[&lt;font color="#a31515"&gt;&amp;quot;Web Service Submit&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;].Execute();&lt;/font&gt;&lt;p&gt;I attempt to use the same thinking that it will add to the xml document, which it does and thinking in turn it should update the SharePoint List.&lt;p&gt;But unfortunately its not doing that, I&amp;#39;m missing a key part but I don&amp;#39;t know what it is, can anyone help please?&lt;/p&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;</description></item><item><title>Update a specified SharePoint List Item via code</title><link>https://www.infopathdev.com:443/forums/thread/96566.aspx</link><pubDate>Fri, 21 Mar 2014 03:29:53 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:96566</guid><dc:creator>Ruskin11</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/96566.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=96566</wfw:commentRss><description>&lt;p&gt;Hi all,&lt;/p&gt;&lt;p&gt;In the infopath form I am designing, I have enabled the form to submit the data to a custom list via web services&amp;nbsp;and then submit the form to the form library.&lt;/p&gt;&lt;p&gt;What happens next is the next user will be notified via email and will update the next section of the form and again, once he hits submit the form will submit to the list and save the form back to the form library&lt;/p&gt;&lt;p&gt;The issue that I am having is that the form will submit replica pieces of data to the list because I don&amp;#39;t know how to get the form to find the corresponding item in the list and update it.&lt;/p&gt;&lt;p&gt;Does anyone know if this is possible or could guide me in achieving this for my form?&lt;/p&gt;&lt;p&gt;I have added the code for the initial submit using C# and my form is an infopath filler form.&lt;/p&gt;&lt;p&gt;Thanks in advance,&lt;/p&gt;&lt;p&gt;R&lt;/p&gt;</description></item></channel></rss>