<?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: Programmatically adding rows to the *top* of a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/105395.aspx</link><pubDate>Thu, 04 Feb 2016 16:55:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105395</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105395.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=105395</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://msdn.microsoft.com/en-us/library/aa942991(v=office.11).aspx"&gt;https://msdn.microsoft.com/en-us/library/aa942991(v=office.11).aspx&lt;/a&gt;&amp;nbsp;says:&lt;/p&gt;&lt;p&gt;It is possible to first set the selection context by using the SelectNodes method or SelectText method, then call the ExecuteAction method to act on that context.&lt;/p&gt;&lt;p&gt;Perhaps the code sample there will help you get an idea of what you need to do? Sorry, I don&amp;#39;t use VBScript and don&amp;#39;t know offhand.&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Programmatically adding rows to the *top* of a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/105391.aspx</link><pubDate>Thu, 04 Feb 2016 16:03:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105391</guid><dc:creator>Gaurav Rampal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105391.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=105391</wfw:commentRss><description>Thank you Hillary,


I replaced 
thisXDocument.View.ExecuteAction(&amp;quot;xCollection::insert&amp;quot;, &amp;quot;group12_778&amp;quot;)
with 
thisXDocument.View.ExecuteAction(&amp;quot;xCollection::insertBefore&amp;quot;, &amp;quot;group12_778&amp;quot;)


I get the error:
The specified bstrAction value for the View.ExecuteAction call is not applicable for the current selection.

Any ideas on how to set the context or pointer or selection?


Thanks

G</description></item><item><title>Re: Programmatically adding rows to the *top* of a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/105389.aspx</link><pubDate>Thu, 04 Feb 2016 15:46:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105389</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105389.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=105389</wfw:commentRss><description>&lt;p&gt;&lt;a href="https://msdn.microsoft.com/en-us/library/office/microsoft.office.infopath.actiontype.aspx"&gt;https://msdn.microsoft.com/en-us/library/office/microsoft.office.infopath.actiontype.aspx&lt;/a&gt;&amp;nbsp;has the ActionType enumeration class, which&amp;nbsp;includes&amp;nbsp;&lt;span class="selflink"&gt;XCollectionInsertBefore - there may be a way to manipulate with that?&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Programmatically adding rows to the *top* of a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/105368.aspx</link><pubDate>Tue, 02 Feb 2016 16:20:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105368</guid><dc:creator>Gaurav Rampal</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105368.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=105368</wfw:commentRss><description>Good day folks,

I am new to Infopath development and our environment dictates that we use 
*Infopath 2007
*VisualStudio 2008
*VBScript for the programming language.

We are trying to programmatically insert rows at the top of a repeating table.

We reused the code posted by Jimmy Rishe on http://www.infopathdev.com/blogs/jimmy/archive/2009/03/06/automatically-adding-rows-to-repeating-sections.aspx
However it adds rows to the end of the table.

Is there a way to add rows to the top of the table?

If so, please could you provide instructions.

Many thanks,

Gaurav</description></item></channel></rss>