<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Sorting a dropdownlist</title><link>https://www.infopathdev.com:443/forums/thread/31018.aspx</link><pubDate>Wed, 30 Jul 2008 09:45:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:31018</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/31018.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=31018</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Go through once below link,&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/blogs/greg/archive/2005/03/25/Preserve-Code-Blocks-_2800_xd_3A00_preserve_2900_-and-Input-Tags.aspx"&gt;http://www.infopathdev.com/blogs/greg/archive/2005/03/25/Preserve-Code-Blocks-_2800_xd_3A00_preserve_2900_-and-Input-Tags.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Sorting a dropdownlist</title><link>https://www.infopathdev.com:443/forums/thread/30997.aspx</link><pubDate>Tue, 29 Jul 2008 18:41:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:30997</guid><dc:creator>mayurnagda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/30997.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=30997</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Patrick&lt;/p&gt;&lt;p&gt;Can you give me some example for&amp;nbsp; Preserve block? &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in advance&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Sorting a dropdownlist</title><link>https://www.infopathdev.com:443/forums/thread/25915.aspx</link><pubDate>Fri, 25 Jan 2008 04:24:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25915</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25915.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25915</wfw:commentRss><description>&lt;p&gt;Hi Joseph and Clay,&lt;/p&gt;
&lt;p&gt;XSL supports sorting but that will require manually modifying your view.xsl. Extract your source files and open your xsl and add the xsl:sort to the dropdown control. Not sure it will work for dropdowns but I know it works for tables, etc., so it should work. This will require an xd:preserve block around the control so that the InfoPath Designer doesn&amp;#39;t remove the sort on roundtrip. Let us know if you need an example, and we can hunt one up.&lt;/p&gt;
&lt;p&gt;Sorting in code... well, yes, but no on the main DOM.&amp;nbsp;Copy the elements into a separate XML DOM internally and create an index array. Sort the indexes which refer to the items. Then, copy the XML&amp;nbsp;DOM into your main&amp;nbsp;DOM using the indexes That&amp;#39;s how you should do it. For an example of how to sort in code (albeit jscript), look at the Asset Tracker solution which ships as a sample in InfoPath 2003 - Greg and I added sort to that. &lt;/p&gt;
&lt;p&gt;Lastly, you could sort the data when you query it from the database server by creating a view on your database that sorts the data and recreating your form based on that view. Or, you could use our EnumDB web service to pull down the values and sort them. Here&amp;#39;s a link to an article that describes how to do it with EnumDB: &lt;a href="http://www.infopathdev.com/forums/t/6399.aspx"&gt;http://www.infopathdev.com/forums/t/6399.aspx&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;I hope this helps!&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Sorting a dropdownlist</title><link>https://www.infopathdev.com:443/forums/thread/25898.aspx</link><pubDate>Thu, 24 Jan 2008 16:14:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25898</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25898.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25898</wfw:commentRss><description>&lt;p&gt;Hey Joseph.&lt;/p&gt;
&lt;p&gt;I believe sorting must be done in code for exisitng data. Also I believe you would still need a seperate list for each so that each can be stored seperately.&lt;/p&gt;
&lt;p&gt;Have you thought about using web services instead?&amp;nbsp; They perform much better and with the ones included in the Database Accelerator Package, you could actually perform dynamic queries. So instead of returning the whole list and having to filter you could return just the relevant subset based on previous selections or other factors. Also you would have the ability to submit data back to multiple&amp;nbsp;SQL tables.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.infopathdev.com/files/folders/dbxldownload/entry19957.aspx" target="_blank"&gt;Qdabra Database Accelerator Suite Version 2.1 - Developer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That may be an advantage.&lt;/p&gt;
&lt;p&gt;On your current queries, if you are not doing so already, make sure you are only selecting the columns you need.&lt;/p&gt;</description></item><item><title>Sorting a dropdownlist</title><link>https://www.infopathdev.com:443/forums/thread/25886.aspx</link><pubDate>Thu, 24 Jan 2008 09:39:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25886</guid><dc:creator>josephblayil</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25886.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=25886</wfw:commentRss><description>&lt;font face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;Hi Everyone,&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;I have around 10 dropdown lists in my InfoPath form.&amp;nbsp; All these refers to columns in the same table. I’m using direct database connection here.&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;Now to sort the items in the dropdown, I’m keeping separate connection for the each of the dropdowns. And sorting it with the connection.&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;But I’m facing lot of performance issues because of this.&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;If I get data for all this drop down using a single connection, Is there a way I can sort from InfoPath..&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;Any help is Appreciated.&lt;/font&gt;&lt;/p&gt;&lt;font face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;Thanks &amp;amp; Regards,&lt;/font&gt;&lt;/p&gt;
&lt;p class="MsoNormal" style="MARGIN:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;Joseph&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>