<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Sort data connections</title><link>https://www.infopathdev.com:443/forums/thread/35790.aspx</link><pubDate>Tue, 16 Dec 2008 07:28:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35790</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35790.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35790</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Here is the link related to sort,&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/t/4733.aspx"&gt;http://www.infopathdev.com/forums/t/4733.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Sort data connections</title><link>https://www.infopathdev.com:443/forums/thread/35774.aspx</link><pubDate>Mon, 15 Dec 2008 16:48:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35774</guid><dc:creator>cali_kid</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35774.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=35774</wfw:commentRss><description>&lt;p&gt;Is there any way to sort a secondary data source in Browser Enabled form? I have a form with mulitple views, and in order to create a preserve code block I have to go and edit all XSL sheets that correspond that form. I&amp;#39;m populating a dropdown menu from a SharePoint List, in the thick client (Info Path) the form appears and renders the sort order that is being used&amp;nbsp;from my SharePoint view. I&amp;#39;ve have created a preserve code block, but that feature is not supported in a browser enabled form. &lt;/p&gt;</description></item><item><title>Re: Sort data connections</title><link>https://www.infopathdev.com:443/forums/thread/22261.aspx</link><pubDate>Thu, 09 Aug 2007 16:27:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22261</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22261.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=22261</wfw:commentRss><description>&lt;p&gt;Hi Shaun,&lt;/p&gt;&lt;p&gt;Great question. There is sorting functionality for XML included in the Asset Tracking sample that ships with InfoPath 2003 (open in Designer, File-&amp;gt;Save as Source, search for sort in the script.js file). It shows how to sort XML child nodes using an index and then rebuild the XML in one full swoop. Assuming you do that OnLoad the secondary data source, which is just XML, will show sorted. You will likely need to create&amp;nbsp;a separate XML DOM to stream the child nodes into using the sorted indexes. Unfortuantely, the Asset Tracking example is javascript, but you should be able to get the technique. .NET as the same quick sort function.&lt;/p&gt;&lt;p&gt;I&amp;#39;d be happy to help further on this, but see what you can make of the Asset Tracking code first.&lt;/p&gt;&lt;p&gt;Cheers!&lt;/p&gt;</description></item><item><title>Sort data connections</title><link>https://www.infopathdev.com:443/forums/thread/22196.aspx</link><pubDate>Tue, 07 Aug 2007 18:42:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22196</guid><dc:creator>shaun.nieves</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22196.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=22196</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m trying to figure out how to sort a secondary data connection to a sharepoint list. I&amp;#39;m aware that the sort on the view dictates the sort in the connection but I&amp;#39;ve read in these forums it can be changed using code. I think I have to use addsort but am not sure on how it works. I&amp;#39;ve tried this but it&amp;#39;s not working. &lt;/p&gt;&lt;p&gt;&amp;nbsp;The node selected in the expression is a dropdown box filled by a secondary data source&lt;/p&gt;&lt;p&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; Dim expr As XPathExpression&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; expr = thisXDocument.DOM.selectSingleNode(&amp;quot;//my:myFields/my:ProcessInfo/my:FilterMaterial&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; expr.AddSort(&amp;quot;FilterMaterial&amp;quot;, XmlSortOrder.Ascending, XmlCaseOrder.None, &amp;quot;&amp;quot;, XmlDataType.Text)&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; MsgBox(&amp;quot;test&amp;quot;, MsgBoxStyle.Critical)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Any help in the right direction would be greatly appreciated. Thanks!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>