<?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: How to get and set the value of a field in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/82606.aspx</link><pubDate>Wed, 12 Sep 2012 23:14:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82606</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82606.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=82606</wfw:commentRss><description>&lt;p&gt;Hi - for your code, look into &lt;a href="http://msdn.microsoft.com/en-us/library/system.xml.xpath.xpathnodeiterator.aspx"&gt;XPathNodeIterator&lt;/a&gt;. You can also do this with &lt;a href="http://www.qdabra.com/en/products/qRules_new.aspx"&gt;qRules&lt;/a&gt;, if you&amp;#39;d rather not write code, or &lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2009/06/07/hack-manifest-xsf-to-filter-the-target-of-a-rule.aspx"&gt;this&lt;/a&gt; blog post may help you do this without code.&lt;/p&gt;</description></item><item><title>How to get and set the value of a field in a repeating section</title><link>https://www.infopathdev.com:443/forums/thread/82599.aspx</link><pubDate>Wed, 12 Sep 2012 21:59:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:82599</guid><dc:creator>infopath_newbee</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/82599.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=82599</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi, &lt;/p&gt;&lt;p&gt;I have a repeating section . There will be two instances for contact and address . I want to set the value dynamically through code based on&amp;nbsp; a drop down selection.I don&amp;#39;t know how to get each instance .The form is basedo an XML Schema. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here is what the actual XML Should look like : &lt;/p&gt;&lt;p&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; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Contact label=&amp;quot;Attn:&amp;quot; linenumber=&amp;quot;1&amp;quot;&amp;gt;John Smith&amp;lt;/Contact&amp;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; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Contact label=&amp;quot;Room:&amp;quot; linenumber=&amp;quot;2&amp;quot;&amp;gt;640&amp;lt;/Contact&amp;gt;&lt;/p&gt;&lt;p&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; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;AddressLine linenumber=&amp;quot;1&amp;quot;&amp;gt;&lt;span&gt;1968 Northeast&lt;/span&gt;&amp;lt;/AddressLine&amp;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; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;AddressLine linenumber=&amp;quot;2&amp;quot;&amp;gt;&lt;span&gt;5th Avenue&lt;/span&gt;&amp;lt;/AddressLine&amp;gt;&lt;br /&gt;&lt;br /&gt;here is the part of the code,&amp;nbsp;&lt;/p&gt;&lt;p&gt;but&amp;nbsp; as you can see it won&amp;#39;t work, Please help.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.infopathdev.com/forums/C:\Documents%20and%20Settings\feroz\My%20Documents\My%20Pictures\InfopathQuestion.bmp" alt="" /&gt;&amp;nbsp;&lt;/p&gt;&lt;p&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim root As XPathNavigator = MainDataSource.CreateNavigator()&lt;br /&gt;&lt;/p&gt;&lt;p&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root.SelectSingleNode(&amp;quot;/PurchaseRequisitionMessage/PurchaseRequisition/RequisitionHeader/ShipTo/Address/Contact/@label&amp;quot;, NamespaceManager).SetValue(&amp;quot;Attn:&amp;quot;)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root.SelectSingleNode(&amp;quot;/PurchaseRequisitionMessage/PurchaseRequisition/RequisitionHeader/ShipTo/Address/Contact/@linenumber&amp;quot;, NamespaceManager).SetValue(&amp;quot;1&amp;quot;)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root.SelectSingleNode(&amp;quot;/PurchaseRequisitionMessage/PurchaseRequisition/RequisitionHeader/ShipTo/Address/Contact&amp;quot;, NamespaceManager).SetValue(&amp;quot;Kim Linnet&amp;quot;)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root.SelectSingleNode(&amp;quot;/PurchaseRequisitionMessage/PurchaseRequisition/RequisitionHeader/ShipTo/Address/Contact/@label&amp;quot;, NamespaceManager).SetValue(&amp;quot;Room:&amp;quot;)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root.SelectSingleNode(&amp;quot;/PurchaseRequisitionMessage/PurchaseRequisition/RequisitionHeader/ShipTo/Address/Contact/@linenumber&amp;quot;, NamespaceManager).SetValue(&amp;quot;2&amp;quot;)&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; root.SelectSingleNode(&amp;quot;/PurchaseRequisitionMessage/PurchaseRequisition/RequisitionHeader/ShipTo/Address/Contact&amp;quot;, NamespaceManager).SetValue(&amp;quot;640&amp;quot;) &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>