<?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: Sorting a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/88805.aspx</link><pubDate>Tue, 09 Apr 2013 21:04:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88805</guid><dc:creator>nikos_gr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88805.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88805</wfw:commentRss><description>Thank you Patrick,

I got it working with the code behind my query button in C# 

I modified the sql command by adding order by projectId DESC

I have another issue though. I am trying to create a tracking mechanism for inserts, updates , deletes for sql. I used an example with database triggers. I have on my form a hidden field that gets the user name (windows login).

After I hit the query button and the form populates with the data from the sql database, if I want to update a record and then hit submit, the form resubmits all the records back to sql. I just want to update just one record and send back to sql just this record. It also messes up who modified the records since the hidden field overwrites the rest of the records with the user name that did he update.

I have a master detail control on my form and the repeating table is my master and there is a repeating section for the details.


Thank you,
Nick</description></item><item><title>Re: Sorting a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/88742.aspx</link><pubDate>Mon, 08 Apr 2013 04:36:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88742</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88742.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88742</wfw:commentRss><description>&lt;p&gt;No programming is needed for this, but you do need to either a) modify the view.xsl, or b) use our qRules add-on that has a command for sorting.&lt;/p&gt;&lt;p&gt;The first approach (modifying the xsl to include an xsl:sort operator) requires exporting the XSN as source files and then opening up view.xsl (or whichever view you have the control in). Search for the control. You&amp;#39;ll have to add the custom xsl:sort attribute and that can be a little tricky. I am guessing there are a lot of examples in this forum if you search. I believe Greg Collins may have uploaded a sample too. If you can&amp;#39;t find them, please send me email.&lt;/p&gt;&lt;p&gt;The second approach is easier (but it does require our qRules library). You can download a free trial of qRules from the Qdabra dot com web site and it will install a user guide that has an example of how to use the sort command.&lt;/p&gt;&lt;p&gt;Best of luck,&lt;/p&gt;&lt;p&gt;Patrick&lt;/p&gt;</description></item><item><title>Sorting a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/88708.aspx</link><pubDate>Fri, 05 Apr 2013 17:26:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:88708</guid><dc:creator>nikos_gr</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/88708.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=88708</wfw:commentRss><description>Hello,

I have an InfoPath 2007 form and wish to sort by descending order a repeating table on a project number column.

I tried several methods that found online that requires quite a lot of programming with no success.

Anyone here that willing to help?

Thank you</description></item></channel></rss>