<?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: Drop-down list - sort</title><link>https://www.infopathdev.com:443/forums/thread/56920.aspx</link><pubDate>Wed, 14 Jul 2010 14:31:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56920</guid><dc:creator>DragosPT</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56920.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=56920</wfw:commentRss><description>&lt;p&gt;Done.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Added &amp;lt;xsl:sort select=&amp;quot;.&amp;quot; data-type=&amp;quot;text&amp;quot; order=&amp;quot;ascending&amp;quot; case-order=&amp;quot;upper-first&amp;quot;/&amp;gt;&amp;nbsp; in the XSL file so no coding required&lt;/p&gt;&lt;p&gt;Tho i&amp;#39;m still curious about the coding part, how would be the right way on doing it, so if anyone knows please answer :) &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Drop-down list - sort</title><link>https://www.infopathdev.com:443/forums/thread/56873.aspx</link><pubDate>Wed, 14 Jul 2010 13:26:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56873</guid><dc:creator>DragosPT</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56873.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=56873</wfw:commentRss><description>&lt;p&gt;Added &lt;/p&gt;&lt;p&gt;thisXDocument.View.DisableAutoUpdate(); &lt;/p&gt;&lt;p&gt;at beginning and&lt;/p&gt;&lt;p&gt;thisXDocument.View.EnableAutoUpdate(); &lt;/p&gt;&lt;p&gt;at the end and it doesn&amp;#39;t work, form still freezes&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Drop-down list - sort</title><link>https://www.infopathdev.com:443/forums/thread/56838.aspx</link><pubDate>Wed, 14 Jul 2010 10:39:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56838</guid><dc:creator>DragosPT</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56838.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=56838</wfw:commentRss><description>&lt;p&gt;Hello&lt;/p&gt;
&lt;p&gt;I&amp;#39;m getting the data into a drop-down list from a web service. (Infopath 2003)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I need that drop-down to be sorted, and so far the only solution that i could find is to modify the DataObject&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Here is the code: http://pastebin.com/Yj947TkB&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The problem with this is: when there are hundreds of items in the dropdown, infopath freezes. I&amp;#39;m guessing every time a&amp;nbsp;&lt;/p&gt;&lt;p&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; IXMLDOMNode spec = specs[i];&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; spec.text = a[i];&lt;/p&gt;&lt;p&gt;is executed, the form is updated, and doing this hundreds of times is bad.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So, is there a way to stop the form during the FOR to auto-update, or is it another way i can access the drop-down and sort it&amp;#39;s data?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Have a nice day. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>