<?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: Get field value out of form</title><link>https://www.infopathdev.com:443/forums/thread/80130.aspx</link><pubDate>Tue, 03 Jul 2012 12:37:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80130</guid><dc:creator>DriesenMichiel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80130.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=80130</wfw:commentRss><description>Never mind alreadt found it &lt;br /&gt;&lt;br /&gt;
  string fieldValue = MainDataSource.CreateNavigator().SelectSingleNode(&lt;br /&gt;
&amp;quot;/my:ProductSystemIdentification/my:ProductAdmin/my:Version&amp;quot;, NamespaceManager).Value;&lt;br /&gt;&lt;br /&gt;
sorry for the post</description></item><item><title>Get field value out of form</title><link>https://www.infopathdev.com:443/forums/thread/80127.aspx</link><pubDate>Tue, 03 Jul 2012 12:13:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:80127</guid><dc:creator>DriesenMichiel</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/80127.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=80127</wfw:commentRss><description>Hey, 
&lt;br /&gt;
I have a problem with a form, i&amp;#39;m using code to add a row in a repeating table. But i want to set the row that&amp;#39;s been added to a value of a field in the form. 
&lt;br /&gt;&lt;br /&gt;
Here you see the code to add the row: 
&lt;br /&gt;&lt;br /&gt;
   string myNamespace = NamespaceManager.LookupNamespace(&amp;quot;my&amp;quot;);&lt;br /&gt;
            using (XmlWriter writer = MainDataSource.CreateNavigator().SelectSingleNode(&lt;br /&gt;
            &amp;quot;/my:ProductSystemIdentification/my:group5&amp;quot;, NamespaceManager).AppendChild())&lt;br /&gt;
            {&lt;br /&gt;
                &lt;br /&gt;
                writer.WriteStartElement(&amp;quot;group6&amp;quot;, myNamespace);&lt;br /&gt;
                writer.WriteElementString(&amp;quot;field1&amp;quot;, myNamespace, &amp;quot;comment1&amp;quot;);&lt;br /&gt;
                writer.WriteElementString(&amp;quot;field2&amp;quot;, myNamespace, &amp;quot;comment2&amp;quot;);&lt;br /&gt;
                writer.WriteElementString(&amp;quot;field3&amp;quot;, myNamespace, &amp;quot;comment&amp;quot;);&lt;br /&gt;
                writer.WriteEndElement();&lt;br /&gt;
                writer.Close();&lt;br /&gt;
&lt;br /&gt;
Now instead of comment 1- 2 -3  I want a value from the form, how can i set a value from the form to a variable ? 
&lt;br /&gt;
The values are located here: &amp;quot;my:ProductSystemIdentification/my:ProductAdmin/my:Version&amp;quot; and so on..
&lt;br /&gt;&lt;br /&gt;
It can&amp;#39;t be that hard i think ? But i don&amp;#39;t find the right solution, I tried some different options from the form but I always get errors. 
&lt;br /&gt;
Can someone please help ? Thanks</description></item></channel></rss>