<?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>InfoPath 2010</title><link>https://www.infopathdev.com:443/forums/142.aspx</link><description>Are you exploring new features coming up in 2010? Share information and ask questions here!</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68451.aspx</link><pubDate>Fri, 15 Jul 2011 15:10:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68451</guid><dc:creator>leoffneym</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68451</wfw:commentRss><description>&lt;p&gt;It may not have been setup all the way.&amp;nbsp; Any one thing off can make it fail, and it won&amp;#39;t report why it failed.&lt;/p&gt;
&lt;p&gt;Happy to hear that you got it working with code.&amp;nbsp; Thats how I use it as well, code is much easier is some aspects.&lt;/p&gt;
&lt;p&gt;Thanks for the support with my foot, its a pain to not be able to walk, but I can still work with InfoPath. LOL.&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68450.aspx</link><pubDate>Fri, 15 Jul 2011 15:03:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68450</guid><dc:creator>BigMonty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68450.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68450</wfw:commentRss><description>&lt;p&gt;turned out it was form security, I didnt have it set to Full Trust, Once I set it to that it&amp;nbsp;worked, and I now have&amp;nbsp;inserting and updating functionality using pure code! any ideas why using the seperate xml&amp;nbsp;file didnt work?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thank you again so much for your help and patience with this, its greatly appreciated! hope you have a speedy recovery with your foot surgery!&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68433.aspx</link><pubDate>Thu, 14 Jul 2011 20:23:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68433</guid><dc:creator>leoffneym</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68433.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68433</wfw:commentRss><description>&lt;p&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Dim ndListView As System.Xml.XmlNode = listService.GetListAndView(&amp;quot;WirelessDev&amp;quot;, &amp;quot;&amp;quot;)&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; strListID &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&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; = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;{F5BBD9F7-7FA5-41C3-A7BE-9D83B0E939FA}&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; strViewID &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&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; = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;{903EC723-BAF9-4021-9BF0-FC031B430AFF}&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color="#000000"&gt;Check &lt;/font&gt;this section and make sure the first line here is not shown as is. It has a &amp;#39; at the beginning.&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68397.aspx</link><pubDate>Wed, 13 Jul 2011 20:55:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68397</guid><dc:creator>BigMonty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68397.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68397</wfw:commentRss><description>&lt;p&gt;just an update here:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve noticed if I hard code values in the xml file, it does do the update, it just doesnt update when i try updating the fields. &lt;/p&gt;
&lt;p&gt;i&amp;#39;ve also been trying to get this to work via code following the example from here:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms440289(v=office.12).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms440289(v=office.12).aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately it blows up on the last line (go figure!), and says:&lt;/p&gt;
&lt;p&gt;&amp;quot;Request for the permission of type &amp;#39;System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.&amp;quot;&lt;/p&gt;
&lt;p&gt;my code is as follows:&lt;/p&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;Declare and initialize a variable for the Lists Web service.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; listService &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; spWeb.Lists()&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;Authenticate the current user by passing their default&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;credentials to the Web service from the system credential cache.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;listService.Credentials = System.Net.CredentialCache.DefaultCredentials&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;Set the Url property of the service for the path to a subsite.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;listService.Url = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;http://server.com/Dev/_vti_bin/lists.asmx&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;Get Name attribute values (GUIDs) for list and view. &lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39; Dim ndListView As System.Xml.XmlNode = listService.GetListAndView(&amp;quot;WirelessDev&amp;quot;, &amp;quot;&amp;quot;)&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; strListID &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&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; = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;{F5BBD9F7-7FA5-41C3-A7BE-9D83B0E939FA}&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; strViewID &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&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; = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;{903EC723-BAF9-4021-9BF0-FC031B430AFF}&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;Create an XmlDocument object and construct a Batch element and its &amp;#39;attributes. Note that an empty ViewName parameter causes the method &amp;#39;to use the default view. &lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; doc &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;New&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; System.Xml.XmlDocument()&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; batchElement &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; System.Xml.XmlElement = doc.CreateElement(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Batch&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/p&gt;batchElement.SetAttribute(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;OnError&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;Continue&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;batchElement.SetAttribute(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;ListVersion&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;)&lt;/p&gt;batchElement.SetAttribute(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;ViewName&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;, strViewID)&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;Specify methods for the batch post using CAML. To update or delete, &amp;#39;specify the ID of the item, and to update or add, specify &lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;the value to place in the specified columns.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;Dim&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; strBatch &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;As&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&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; = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;lt;Method ID=&amp;#39;1&amp;#39; Cmd=&amp;#39;Update&amp;#39;&amp;gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + _&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;lt;Field Name=&amp;#39;ID&amp;#39;&amp;gt;1&amp;lt;/Field&amp;gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + _&lt;/p&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;lt;Field Name=&amp;#39;FirstName&amp;#39;&amp;gt;Josh&amp;lt;/Field&amp;gt;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + _&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;lt;/Method&amp;gt;&amp;quot;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;batchElement.InnerXml = strBatch&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&amp;#39;Update list items. This example uses the list GUID, which is recommended, but the list display name will also work.&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;listService.UpdateListItems(strListID, batchElement)&lt;/p&gt;
&lt;p&gt;I hard coded the listID and viewIDs in, and I&amp;#39;m pretty confident they&amp;#39;re correct as I got them from the URL directly in SP. From my understanding, the viewID is optional, isnt it? if none is specified, doesnt it use the default view?&lt;/font&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68320.aspx</link><pubDate>Mon, 11 Jul 2011 21:31:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68320</guid><dc:creator>BigMonty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68320.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68320</wfw:commentRss><description>&lt;p&gt;just wanted to check in and see if you had any suggestions for this.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Cheers&lt;br /&gt;Josh&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68194.aspx</link><pubDate>Thu, 07 Jul 2011 18:34:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68194</guid><dc:creator>BigMonty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68194.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68194</wfw:commentRss><description>&lt;p&gt;i tried adding the ID field (was in a meeting all day and just got to it now) and that didnt work, so I&amp;#39;m still not sure why its not updating :(&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Or use code and use your own fields. &lt;br /&gt;&lt;br /&gt;i think this is the direction I should head in, as I&amp;#39;m only going to want one record to show up on the screen. Any resources you can point me in would be most appreciated!&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68180.aspx</link><pubDate>Thu, 07 Jul 2011 14:21:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68180</guid><dc:creator>BigMonty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68180.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68180</wfw:commentRss><description>I tried adding the ID field to the xml file but it still didn&amp;#39;t updatethe record. Do I have to add the ID field to the form as well? Whenyou say I need to set the record to the ID of the recordwhat exactly do you mean?

Do you have any examples on how to update via code? Chances are I&amp;#39;m not going to use a repeating table so I&amp;#39;m hoping I&amp;#39;ll be able to do this without a repeating table.</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68151.aspx</link><pubDate>Wed, 06 Jul 2011 20:12:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68151</guid><dc:creator>leoffneym</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68151.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68151</wfw:commentRss><description>&lt;p&gt;Sorry, I forgot some info that needs to done with updates.&lt;/p&gt;
&lt;p&gt;In the xml that you had to create to for the Batch, add &amp;lt;Field Name=&amp;#39;ID&amp;#39;&amp;gt;&amp;lt;/Field&amp;gt; above all the other fields.&lt;br /&gt;The ID is unique to each row in the SP List, in order to update the row, you will need the ID of that row, which can be gotten from the data source the same way you pull all the other info.&lt;/p&gt;
&lt;p&gt;In order to update, just like when you add, you just set all the fields necessary and the ID field to the ID that you got when you queried the SP List.&lt;/p&gt;
&lt;p&gt;To make it all work fluently and to have integrate with your existing form will be the fun part.&lt;br /&gt;You can either:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div&gt;Have the query populate the CAML repeating table and update it there&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Or use code and use your own fields. &lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;The choice is up to you,&amp;nbsp; I use code only because we already have custom code on our forms and implementing it make it flow better, but both ways work the same.&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68144.aspx</link><pubDate>Wed, 06 Jul 2011 19:15:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68144</guid><dc:creator>BigMonty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68144.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68144</wfw:commentRss><description>&lt;p&gt;wow, some really good info in here, thanks a bunch!&lt;/p&gt;
&lt;p&gt;So over the last day I&amp;#39;ve been working on getting this to work, and I think I&amp;#39;m almost there. To simplify things, I created a new form from scratch and followed the steps outlined in the link you gave. Unfortunately, u2u doesnt work with SP2010, so it took me some time to get all of the internal names. After I got the field names, I was able to follow the rest of the steps, and when I run it in IP Filler, I am able to only add in new records. When I change the Method to Update (and then re-do the data connection to use this newly updated xml doc), it submits the form but doesnt update the record, and gives no errors. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;Any ideas?&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68068.aspx</link><pubDate>Tue, 05 Jul 2011 16:04:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68068</guid><dc:creator>leoffneym</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68068.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68068</wfw:commentRss><description>&lt;p&gt;The way you save the infomation depends on how it is used. &lt;/p&gt;
&lt;p&gt;EX: We track documents from begining to end, with internal archiving happening within the form itself.&amp;nbsp; This has to be self contained within one form, or you would end up with a SP list thanks extremely long and not really easy to read.&lt;/p&gt;
&lt;p&gt;In your case, it sound like your using the SP list like excel, which make the way your using IP work great.&lt;/p&gt;
&lt;p&gt;I would leave your form as is and just build in CAML updating.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To do CAML:&lt;/p&gt;
&lt;p&gt;When you created the SP list and added new columns did you change&amp;nbsp;the names of any columns after they got created (Ex: Title is the first column when you create an SP list, did you rename it?)&lt;/p&gt;
&lt;p&gt;You will need the original names of the columns to use CAML.&amp;nbsp; There are some programs mentioned here that hepl you get the orignal column names. This is the one i use -&amp;gt; &lt;a class="" href="http://www.u2u.net/Tools/wincamlquerybuilder/CamlQueryBuilder.aspx"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Once you download it and get connected to you sp list, you can ues it to get the original column names. (When connecting, use Connect via SharePoint Web Services, 9 out 10 times you wont use Object Model)&lt;/p&gt;
&lt;p&gt;Find your SP list in the &lt;strong&gt;Lists&lt;/strong&gt; on the left hand side. Then select &lt;strong&gt;New Query&lt;/strong&gt; from the right hand side.&lt;/p&gt;
&lt;p&gt;&lt;img title="Find LIsts" style="WIDTH:1019px;HEIGHT:86px;" height="86" alt="Find LIsts" src="http://i1125.photobucket.com/albums/l585/eviltimes8/U2U_1.png" width="1019" /&gt;&lt;/p&gt;
&lt;p&gt;Once you have that, you can get the names.&lt;/p&gt;
&lt;p&gt;&lt;img src="http://i1125.photobucket.com/albums/l585/eviltimes8/U2U_2.png" alt="" /&gt;&lt;/p&gt;
&lt;p&gt;The outline in red will give you all the columns in yout SP list in there &lt;strong&gt;Original&lt;/strong&gt; names. Write them down or keep this window up.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To write the actual CAML -&amp;gt; &lt;a href="http://www.infopathdev.com/blogs/matt/archive/2006/02/02/Add-SharePoint-List-Items-with-InfoPath.aspx"&gt;http://www.infopathdev.com/blogs/matt/archive/2006/02/02/Add-SharePoint-List-Items-with-InfoPath.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Where it says Field Name, enter the column names from above, in order that they appear above, all of them.(Even if you are not changing a column, you still want to add it now, so you don&amp;#39;t have to add it later)&lt;/p&gt;
&lt;p&gt;The other thing to change is &lt;strong&gt;&amp;lt;Methed ID=&amp;quot;1&amp;quot; Cmd=&amp;quot;New&amp;quot;&amp;gt;&lt;/strong&gt;, change the Cmd=&amp;quot;New&amp;quot; to Cmd=&amp;quot;Update&amp;quot;.&amp;nbsp; This will make sure that you update and not add a new item.&lt;/p&gt;
&lt;p&gt;Follow all the other steps in the link.&amp;nbsp; it will get you setup so that the CAML works.&lt;/p&gt;
&lt;p&gt;Test the CAML as well with test items.&amp;nbsp; If it doesn&amp;#39;t work, check the column names, they have to be exact.(took me a week to get it work, because its not really defined how to use CAML correctly anywhere, the link is nice, but it assumes you know more than you do)&lt;/p&gt;
&lt;p&gt;Let me know how it goes for you, its alot to do.&lt;/p&gt;
&lt;p&gt;Happy late 4th to you as well.&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68061.aspx</link><pubDate>Tue, 05 Jul 2011 13:33:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68061</guid><dc:creator>BigMonty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68061.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68061</wfw:commentRss><description>&lt;p&gt;still being a IP newbie, is there a &amp;quot;preferred&amp;quot; way of doing this? or maybe a better term would be &amp;quot;standard&amp;quot;...anyways, do you have any examples for doing CAML updates? or should I convert this over to a document library?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;happy (late) 4th :)&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68057.aspx</link><pubDate>Tue, 05 Jul 2011 12:22:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68057</guid><dc:creator>leoffneym</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68057.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68057</wfw:commentRss><description>&lt;p&gt;No you don&amp;#39;t have to.&lt;/p&gt;
&lt;p&gt;That just makes things more complicated.&amp;nbsp; In order to update a SP list, you will have to a CAML update.&amp;nbsp; It requires more overall work, but can accomplish the same thing.&lt;/p&gt;
&lt;p&gt;I assumed you were using forms, but it makes no difference which you use.&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/68050.aspx</link><pubDate>Mon, 04 Jul 2011 19:48:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68050</guid><dc:creator>BigMonty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68050.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=68050</wfw:commentRss><description>&lt;p&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; You can create a field name filename.&amp;nbsp; Using the data connection, you can select filename as the &amp;quot;filename&amp;quot; to be saved as.&lt;br /&gt;When you search and find an existing form, you can set the filename field to the filename of the existing form, then use a button that submits using a data connection, select the submit data connection you found above.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;just out of curiosity, are you talking about a document library here? I&amp;#39;m not using one, I&amp;#39;m using a straight up SP list, should I convert it over to a document library?&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/67995.aspx</link><pubDate>Fri, 01 Jul 2011 18:43:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67995</guid><dc:creator>leoffneym</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67995.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=67995</wfw:commentRss><description>&lt;p&gt;When you save the forms, are you using a data connection or the submit button geneterated by submit options. (if using the submit options, go into data connections to find out the data connections name, may or may not have &amp;quot;submit&amp;quot; in its name)&lt;br /&gt;Go into the data connection and make sure the Allow&amp;nbsp;overwrite if form exist is checked. (if this isn&amp;#39;t checked, it will create a new form)&lt;/p&gt;
&lt;p&gt;You can create a field name filename.&amp;nbsp; Using the data connection, you can select filename as the &amp;quot;filename&amp;quot; to be saved as.&lt;br /&gt;When you search and find an existing form, you can set the filename field to the filename of the existing form, then use a button that submits using a data connection, select the submit data connection you found above.&lt;/p&gt;
&lt;p&gt;Now when you open and search, you can edit the existing&amp;nbsp;and when you save, you will be &lt;strong&gt;saving over&lt;/strong&gt; the old existing form, essentially rewriting it.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will have to clear some fields before saving though, such as the field you entered the first info into when searching, its not necessary, buts it helps so that the next time you open that form from sharepoint, only the necessary fields are filled.&lt;/p&gt;</description></item><item><title>Re: switch to edit mode on button click</title><link>https://www.infopathdev.com:443/forums/thread/67980.aspx</link><pubDate>Fri, 01 Jul 2011 14:41:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:67980</guid><dc:creator>BigMonty</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/67980.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=142&amp;PostID=67980</wfw:commentRss><description>&lt;p&gt;SP is doing THe naming&lt;/p&gt;</description></item></channel></rss>