<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: after submit fields not updating</title><link>https://www.infopathdev.com:443/forums/thread/65437.aspx</link><pubDate>Fri, 25 Mar 2011 13:48:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:65437</guid><dc:creator>BMARU</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/65437.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=65437</wfw:commentRss><description>&lt;p&gt;I am getting the same issue SetValue works only first time to update the field value.Second time trying to update the value through setvalue its not updating the value.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not getting the error but I can see the value is changed second time through debugging but it lost when form load in browser&lt;/p&gt;</description></item><item><title>Re: after submit fields not updating</title><link>https://www.infopathdev.com:443/forums/thread/54597.aspx</link><pubDate>Thu, 06 May 2010 13:52:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54597</guid><dc:creator>ehaze</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54597.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54597</wfw:commentRss><description>First I&amp;#39;m trying to clear the field:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub FormEvents_Loading(ByVal sender As Object, ByVal e As LoadingEventArgs)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim xnDoc As XPathNavigator = Me.MainDataSource.CreateNavigator()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim xFrom As XPathNavigator = xnDoc.SelectSingleNode(&amp;quot;my:myFields/my:txtOpenedFrom&amp;quot;, Me.NamespaceManager)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xFrom.SetValue(&amp;quot;&amp;quot;)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; doStuff()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Then I try and update the field with the new library name:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub doStuff()&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim xnDoc As XPathNavigator = Me.MainDataSource.CreateNavigator()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim xFrom As XPathNavigator = xnDoc.SelectSingleNode(&amp;quot;my:myFields/my:txtOpenedFrom&amp;quot;, Me.NamespaceManager)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; xFrom .SetValue(&amp;quot;New Value&amp;quot;)&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;</description></item><item><title>Re: after submit fields not updating</title><link>https://www.infopathdev.com:443/forums/thread/54564.aspx</link><pubDate>Wed, 05 May 2010 20:57:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54564</guid><dc:creator>bryanstrader</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54564.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54564</wfw:commentRss><description>Are you checking if the field has a value before updating it? Maybe already having a value is bypassing the setting of the new value. Maybe post the piece of code you are using...Which event are you using to set the value...? Form_Load()? maybe after the submit to the new form library the code to set the value isn&amp;#39;t running.</description></item><item><title>after submit fields not updating</title><link>https://www.infopathdev.com:443/forums/thread/54559.aspx</link><pubDate>Wed, 05 May 2010 20:09:12 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54559</guid><dc:creator>ehaze</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54559.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=54559</wfw:commentRss><description>&lt;p&gt;i&amp;#39;m using code to populate a text field with the name of the library the form is created from.&lt;/p&gt;&lt;p&gt;this works.&lt;/p&gt;&lt;p&gt;but, once i submit the form to another form libary and open it, the text field doesnt update to the new library name.&lt;/p&gt;&lt;p&gt;any ideas?&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>