<?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: sorting a drop down list populated from a data connection</title><link>https://www.infopathdev.com:443/forums/thread/38351.aspx</link><pubDate>Thu, 12 Feb 2009 09:07:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38351</guid><dc:creator>discodave82</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=38351</wfw:commentRss><description>&lt;p&gt;My solution to the problem is here :- &lt;/p&gt;
&lt;p&gt;&lt;a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/4f739cec-220e-4ab2-a6d9-13079e43844a"&gt;http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/4f739cec-220e-4ab2-a6d9-13079e43844a&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: sorting a drop down list populated from a data connection</title><link>https://www.infopathdev.com:443/forums/thread/38054.aspx</link><pubDate>Tue, 03 Feb 2009 21:15:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38054</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38054.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=38054</wfw:commentRss><description>&lt;p&gt;I can suggest trying qRules, since it contains a command that allows you to sort without code.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/files/folders/dbxldownload/entry34534.aspx"&gt;http://www.infopathdev.com/files/folders/dbxldownload/entry34534.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;If you want more information about qRules do let me know.&lt;/p&gt;</description></item><item><title>Re: sorting a drop down list populated from a data connection</title><link>https://www.infopathdev.com:443/forums/thread/37971.aspx</link><pubDate>Mon, 02 Feb 2009 15:34:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37971</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37971.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=37971</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you debug once and let us know what your error is? Where you are struck in that code?&lt;/p&gt;
&lt;p&gt;Are you able to add your xml nodes to sortValues? &lt;/p&gt;
&lt;p&gt;Do you want to just sort list or elements position by sorting order also? Can you give more details on your error?&lt;/p&gt;</description></item><item><title>Re: sorting a drop down list populated from a data connection</title><link>https://www.infopathdev.com:443/forums/thread/37962.aspx</link><pubDate>Mon, 02 Feb 2009 11:47:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37962</guid><dc:creator>fromonesource</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37962.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=37962</wfw:commentRss><description>&lt;p&gt;Anuma,&lt;/p&gt;&lt;p&gt;I have seen those before and have spent some time getting each to work. I was not successful with the first method and the second suggestion of using the url that generates xml will not work in my case because I cannot modify the data connections. Do you have any ideas on how to get this method to work successfully? I need to accomplish this in C# if the solution is a codded approach.&lt;br /&gt;&lt;/p&gt;






&lt;p&gt;XPathNavigator navigator = this.MainDataSource.CreateNavigator();&lt;br /&gt;XPathNodeIterator repeatingNodes = navigator.SelectChildren(&amp;quot;XPath of your field&amp;quot;, &amp;quot;Namespace of your form&amp;quot;);&lt;br /&gt;ArrayList sortValues = new ArrayList();&lt;br /&gt;foreach(XMLNode repeatingNode in repeatingNodes)&lt;br /&gt;{&lt;br /&gt;sortValues.Add(repeatingNode.xml);&lt;br /&gt;}&lt;br /&gt;sortValues.Sort();&lt;/p&gt;</description></item><item><title>Re: sorting a drop down list populated from a data connection</title><link>https://www.infopathdev.com:443/forums/thread/37959.aspx</link><pubDate>Mon, 02 Feb 2009 10:50:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37959</guid><dc:creator>Anuma</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37959.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=37959</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you verify below Links.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/forums/t/10102.aspx"&gt;http://www.infopathdev.com/forums/t/10102.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blogs.msdn.com/infopath/archive/2007/01/15/populating-form-data-from-sharepoint-list-views.aspx"&gt;http://blogs.msdn.com/infopath/archive/2007/01/15/populating-form-data-from-sharepoint-list-views.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>sorting a drop down list populated from a data connection</title><link>https://www.infopathdev.com:443/forums/thread/37950.aspx</link><pubDate>Sun, 01 Feb 2009 19:31:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37950</guid><dc:creator>fromonesource</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37950.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=37950</wfw:commentRss><description>&lt;p&gt;I have a drop down menu being populated from a data connection bound to a sharepoint list. I need to sort the data in alphabetical order. The form will be used through the browser so I cannot rely on sorting the view (browser ignores default view sort order). &lt;/p&gt;&lt;p&gt;I guess what I would want to do in this case is to pop each of these items off the data connection, put them into an array, do some sorting and then put them back into the drop down menu. Could I get some code pointers around getting the items from the data source into the array and then back into the drop down menu in sort order?&lt;/p&gt;&lt;p&gt;I am under a bit of a deadline and I have spent a good amount of time on this already. Any help would be greatly appreciated! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>