<?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: Make added repeating section show up on top of the list of sections</title><link>https://www.infopathdev.com:443/forums/thread/91693.aspx</link><pubDate>Sun, 28 Jul 2013 14:07:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91693</guid><dc:creator>Jnellson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91693.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91693</wfw:commentRss><description>&lt;p&gt;I do like the look of qRules and will look into it for future projects. I have seen it as the answer to many problems on the forums but it is not approved for me to use or a part of my budget. &lt;/p&gt;
&lt;p&gt;For now&amp;nbsp;I am stuck using what comes with InfoPath. &lt;/p&gt;
&lt;p&gt;My current code looks like this:&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; //get the parent node for the repeating group&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; XPathNavigator parent = MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:StudentNotecard/my:Interactions/my:InteractionList&amp;quot;, NamespaceManager);&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; //clone a node from Sample Data&amp;nbsp;&amp;nbsp;&amp;nbsp; &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; XmlDocument sampleData = new XmlDocument();&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; sampleData.Load(this.Template.OpenFileFromPackage(&amp;quot;sampledata.xml&amp;quot;));&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; XPathNavigator child = sampleData.CreateNavigator().SelectSingleNode(&amp;quot;/my:StudentNotecard/my:Interactions/my:InteractionList/my:InteractionsList&amp;quot;, NamespaceManager).Clone();&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; //append the node&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; parent.AppendChild(child);&lt;/p&gt;
&lt;p&gt;I appreciate any help.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Jon&lt;/p&gt;</description></item><item><title>Re: Make added repeating section show up on top of the list of sections</title><link>https://www.infopathdev.com:443/forums/thread/91685.aspx</link><pubDate>Sun, 28 Jul 2013 05:32:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91685</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91685.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91685</wfw:commentRss><description>&lt;p&gt;Hi Jon,&lt;/p&gt;
&lt;p&gt;In lieu of writing custom code for every coding request, we developed qRules which helps us pay for our time to monitor and respond to this forum.&lt;/p&gt;
&lt;p&gt;All proceeds from qRules go towards paying InfoPath MVPs to respond to this forum.&lt;/p&gt;
&lt;p&gt;And, qRules has an Insert function with a parameter for position (/posn=1) or you can say /before which means insert before (ignored when using /posn).&lt;/p&gt;
&lt;p&gt;Try the trial and remove your custom code. It will save you money in the long run&amp;nbsp;and your purchase goes to support the forum.&lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;
&lt;p&gt;Patrick&amp;nbsp;&lt;/p&gt;</description></item><item><title>Make added repeating section show up on top of the list of sections</title><link>https://www.infopathdev.com:443/forums/thread/91610.aspx</link><pubDate>Thu, 25 Jul 2013 02:56:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91610</guid><dc:creator>Jnellson</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91610.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91610</wfw:commentRss><description>I have a form with a repeating section that has a button that adds the new section via VB. 

See this post for reference: http://www.infopathdev.com/forums/p/26230/91066.aspx#91066 

I would not like the new field to show up on top of the list. 

Any thoughts?

Thanks for any help!

Jon</description></item></channel></rss>