<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.inetium.com/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>Bill Goergen</title><link>http://blogs.inetium.com/blogs/bgoergen/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2008 (Build: 30417.1769)</generator><item><title>Sort Values in Pick Lists</title><link>http://blogs.inetium.com/blogs/bgoergen/archive/2008/10/07/sort-values-in-pick-lists.aspx</link><pubDate>Tue, 07 Oct 2008 16:42:00 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:18439</guid><dc:creator>bgoergen</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.inetium.com/blogs/bgoergen/rsscomments.aspx?PostID=18439</wfw:commentRss><comments>http://blogs.inetium.com/blogs/bgoergen/archive/2008/10/07/sort-values-in-pick-lists.aspx#comments</comments><description>&lt;p&gt;&amp;nbsp;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;Sometimes, it is the little things that make a difference.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;If you talk to our friends at Microsoft, they are pretty adamant about it&amp;hellip;Pick lists in CRM should not be too big.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;Admittedly, they are a little vague about how big is &amp;ldquo;too big&amp;rdquo; but the message is pretty consistent.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;Pick lists with too many values can degrade performance, &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;create maintenance issues, and the make the user experience less than satisfying if they have to scroll through dozens or even hundreds of items to find the values they need.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;font-family:Calibri;"&gt;However, in real life there are some legitimate reasons why pick lists get pretty big and that won&amp;rsquo;t change in the near future.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;In working with pick lists recently, we encountered a&amp;nbsp;situation that seemed&amp;nbsp;like an error in the system and it took some investigating (and frustration) &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;to find the way out. I&lt;/span&gt;&lt;span style="font-size:small;font-family:Calibri;"&gt;n this case we had added a large number of values to a pick list and sorted the valued in ascending order (a&lt;/span&gt;&lt;span style="font-size:small;font-family:Calibri;"&gt;phabetically).&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;span style="font-size:small;font-family:Calibri;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;We saved the list, added&amp;nbsp;the field to the form, published the entity, and everything worked as expected.&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;We then went to create an Advance Find view to allow users to query the field.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:small;font-family:Calibri;"&gt;&lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;"&gt;&lt;span style="font-family:Calibri;"&gt;However, in building the query, there seemed to be numerous missing choices in the Available Values list.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;In this case we were looking for &amp;ldquo;e-commerce&amp;rdquo; but it&amp;nbsp;seemed not to be one of the available choices.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;font-family:Calibri;"&gt;After&amp;nbsp;some investigation, it turns out that the values are sorted differently in the look up field than they are in the attribute field.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;font-family:Calibri;"&gt;&lt;span style="mso-spacerun:yes;"&gt;&lt;/span&gt;The Look Up field sort is case sensitive so the sort order is as follows:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;div style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;font-family:Calibri;"&gt;First - Values starting with non-alpha characters.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;font-family:Calibri;"&gt;&amp;nbsp;Second -&amp;nbsp;Values that start with upper case letters.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;font-family:Calibri;"&gt;Third -&amp;nbsp;Lower case letters are at the bottom of the list.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;font-family:Calibri;"&gt;When we had entered the values in the attribute pick list, some of the values were entered starting with lower case letters, some legitimately (e-Commerce) and some unintentionally.&amp;nbsp; &lt;/span&gt;&lt;span style="mso-no-proof:yes;"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0in 0in 10pt;" class="MsoNormal"&gt;&lt;span style="font-size:small;font-family:Calibri;"&gt;This is not a big deal when your pick lists contains a relatively few number of values and you can visually search the choices.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp; &lt;/span&gt;However when the number of values gets larger you tend to rely on the sort to help you find the values you are seeking.&lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;In that case it is helpful to know that some of choices may be relegated to the bottom of the list depending on how they were entered into the attribute.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:11pt;line-height:115%;font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;mso-ascii-theme-font:minor-latin;mso-fareast-font-family:Calibri;mso-fareast-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-bidi-font-family:&amp;#39;Times New Roman&amp;#39;;mso-bidi-theme-font:minor-bidi;mso-ansi-language:EN-US;mso-fareast-language:EN-US;mso-bidi-language:AR-SA;"&gt;As we said when we started&amp;hellip;sometimes it is the little things. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=18439" width="1" height="1"&gt;</description><category domain="http://blogs.inetium.com/blogs/bgoergen/archive/tags/CRM/default.aspx">CRM</category><category domain="http://blogs.inetium.com/blogs/bgoergen/archive/tags/3.0/default.aspx">3.0</category><category domain="http://blogs.inetium.com/blogs/bgoergen/archive/tags/4.0/default.aspx">4.0</category><category domain="http://blogs.inetium.com/blogs/bgoergen/archive/tags/advance+find/default.aspx">advance find</category><category domain="http://blogs.inetium.com/blogs/bgoergen/archive/tags/Pick+list/default.aspx">Pick list</category><category domain="http://blogs.inetium.com/blogs/bgoergen/archive/tags/Bill+Goergen/default.aspx">Bill Goergen</category><category domain="http://blogs.inetium.com/blogs/bgoergen/archive/tags/Inetiium/default.aspx">Inetiium</category></item></channel></rss>