<?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>Controls</title><link>https://www.infopathdev.com:443/forums/43.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Master/Detail - insert new row above repeating master table</title><link>https://www.infopathdev.com:443/forums/thread/43031.aspx</link><pubDate>Tue, 16 Jun 2009 16:12:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43031</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43031.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43031</wfw:commentRss><description>&lt;p&gt;Yes, I&amp;#39;m becoming quite an expert at trolling through these pages and google looking for answers - it&amp;#39;s the downside to being the resident InfoPath expert here!&lt;/p&gt;
&lt;p&gt;Thanks again for your help, in this case I don&amp;#39;t think it will be too much of an issue to re-edit the xsl if need be as it&amp;#39;s a pretty small modification and there (hopefully!) won&amp;#39;t be too many alterations to this view once the form is up and running.&lt;/p&gt;</description></item><item><title>Re: Master/Detail - insert new row above repeating master table</title><link>https://www.infopathdev.com:443/forums/thread/43030.aspx</link><pubDate>Tue, 16 Jun 2009 16:05:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43030</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43030.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43030</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Good job finding out about preserve code blocks.&amp;nbsp; I&amp;#39;m not that knowledgeable about the topic, but I gave it a try and unfortunately it doesn&amp;#39;t seem like it will work in this case.&amp;nbsp; The special relationshp between the master and detail controls means that when the master part is in a preserve code block, the detail control doesn&amp;#39;t work properly.&lt;/p&gt;&lt;p&gt;To answer your question, you should be able to modify the&amp;nbsp; data source, add other views, and modify the other views without re-editing the XSL, but any changes within the view where the control is (even if not on the control itself) will cause the XSL to revert.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Master/Detail - insert new row above repeating master table</title><link>https://www.infopathdev.com:443/forums/thread/43010.aspx</link><pubDate>Tue, 16 Jun 2009 12:04:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43010</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43010.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43010</wfw:commentRss><description>&lt;p&gt;Thanks Jimmy, this worked great!&amp;nbsp; I had actually found the xsl:sort option previously but couldn&amp;#39;t get it working as I hadn&amp;#39;t included the () at the end of &amp;quot;position&amp;quot;.&lt;/p&gt;
&lt;p&gt;Regarding Infopath&amp;#39;s tendency to overwrite the changes, I was also reading about preserve code blocks in conjunction with the xsl:sort in order to preserve the code so InfoPath doesn&amp;#39;t change it everytime.&amp;nbsp; Is this something you&amp;#39;re familiar with?&amp;nbsp; When I tried doing it previously I didn&amp;#39;t have any luck with it.&lt;/p&gt;
&lt;p&gt;Failing that, will I only need to amend the .xsl if I make changes to that specific view?&amp;nbsp; Will it be affected by any changes (e.g adding new fields, adding additional options to ddl&amp;#39;s etc) or is it only affected by changes made to the node I&amp;#39;m forcing the sort on?&lt;/p&gt;
&lt;p&gt;As always, thanks so much for all your help - I&amp;#39;d never get anywhere without this site!&lt;/p&gt;</description></item><item><title>Re: Master/Detail - insert new row above repeating master table</title><link>https://www.infopathdev.com:443/forums/thread/43002.aspx</link><pubDate>Tue, 16 Jun 2009 10:54:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:43002</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/43002.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=43002</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;It&amp;#39;s not the smoothest solution, but please try the attached XSN.&lt;/p&gt;&lt;p&gt;How I did it:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Open up the Master repeating section&amp;#39;s properties, click the Advanced tab and get the control&amp;#39;s ViewContext ID (something like CTRL1_5)&lt;/li&gt;&lt;li&gt;Save the template as its source files and open the XSL file that corresponds to the view where this Master/Detail control is.&lt;/li&gt;&lt;li&gt;Search for the ViewContext ID in the file and find the XSL that corresponds to the Master section.&amp;nbsp; In my case it looks something like this:&lt;br /&gt;&amp;lt;tbody xd:xctname=&amp;quot;RepeatingTable&amp;quot; xd:masterName=&amp;quot;CTRL1_5&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;xsl:for-each select=&amp;quot;my:group1/my:group2&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&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; ... contents abbreviated&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;&amp;lt;/tbody&amp;gt;&lt;/li&gt;&lt;li&gt;Add an xsl:sort line immediately after the xsl:for-each line, so the whole bit looks like this (you can copy the xsl:sort line exactly as it is here):&lt;br /&gt;&amp;lt;tbody xd:xctname=&amp;quot;RepeatingTable&amp;quot; xd:masterName=&amp;quot;CTRL1_5&amp;quot;&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;xsl:for-each select=&amp;quot;my:group1/my:group2&amp;quot;&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; &lt;u&gt;&lt;b&gt;&amp;lt;xsl:sort select=&amp;quot;position()&amp;quot; order=&amp;quot;descending&amp;quot;/&amp;gt;&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&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; ... contents abbreviated&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;/xsl:for-each&amp;gt;&lt;br /&gt;
&amp;lt;/tbody&amp;gt;&lt;/li&gt;&lt;li&gt;Reopen and preview the form.&amp;nbsp; New rows will be added at the top of the master table.&lt;/li&gt;&lt;/ol&gt;One significant drawback here is that InfoPath does not expect you to make manual changes to the views&amp;#39; XSL, and as a result, has a tendency to overwrite changes you have made to it any time you make a change to the view, and this is one of those cases.&amp;nbsp; So this means you will need to re-edit the XSL any time you make a change to the view.&amp;nbsp; If you think you will be making few enough changes that this won&amp;#39;t become a huge hassle, I welcome you to give this approach a try.&lt;br /&gt;</description></item><item><title>Master/Detail - insert new row above repeating master table</title><link>https://www.infopathdev.com:443/forums/thread/42365.aspx</link><pubDate>Mon, 01 Jun 2009 16:47:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:42365</guid><dc:creator>Anonymous</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/42365.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=43&amp;PostID=42365</wfw:commentRss><description>&lt;p&gt;I am working on a form that tracks invoices from suppliers so that we have a full record of all invoices received from each individual supplier.&amp;nbsp; In one of my views I have set up a master/detail section in which users can enter the current invoice details while updating the historical invoice details at the same time.&amp;nbsp; I know I&amp;#39;m using it kind of backwards, but for my purposes users will enter all the data into the &amp;quot;Detail&amp;quot; section and the &amp;quot;Master&amp;quot; section will hold basic details about each invoice. Users will then insert a new &amp;quot;Detail&amp;quot; section rather than inserting a new Master&amp;nbsp;section each time a new invoice is received (insert controls have been disabled on the Master).&amp;nbsp; What I would like&amp;nbsp;to happen is for a user to insert a new&amp;nbsp;Detail&amp;nbsp;section and when the new row is inserted in the&amp;nbsp;Master repeating table, the row is inserted at the top of the table rather than the bottom - this way the historical invoice info will&amp;nbsp;sorted newest - oldest.&amp;nbsp;&amp;nbsp;I know that when the insert/delete controls are enabled on the master, you can manually select to insert a row above but can&amp;#39;t&amp;nbsp;find any way to do this as a default.&amp;nbsp; I&amp;#39;ve searched all over but can&amp;#39;t seem to find a simple solution...any ideas?&amp;nbsp; Screen shot of the form is attached so you can get an idea of what I&amp;#39;m doing.&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;</description></item></channel></rss>