<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.inetium.com/utility/FeedStylesheets/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en"><title type="html">Bill Goergen</title><subtitle type="html" /><id>http://blogs.inetium.com/blogs/bgoergen/atom.aspx</id><link rel="alternate" type="text/html" href="http://blogs.inetium.com/blogs/bgoergen/default.aspx" /><link rel="self" type="application/atom+xml" href="http://blogs.inetium.com/blogs/bgoergen/atom.aspx" /><generator uri="http://communityserver.org" version="4.0.30417.1769">Community Server</generator><updated>2008-10-07T11:42:00Z</updated><entry><title>Sort Values in Pick Lists</title><link rel="alternate" type="text/html" href="/blogs/bgoergen/archive/2008/10/07/sort-values-in-pick-lists.aspx" /><id>/blogs/bgoergen/archive/2008/10/07/sort-values-in-pick-lists.aspx</id><published>2008-10-07T16:42:00Z</published><updated>2008-10-07T16:42:00Z</updated><content type="html">&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;</content><author><name>bgoergen</name><uri>http://blogs.inetium.com/members/bgoergen/default.aspx</uri></author><category term="CRM" scheme="http://blogs.inetium.com/blogs/bgoergen/archive/tags/CRM/default.aspx" /><category term="3.0" scheme="http://blogs.inetium.com/blogs/bgoergen/archive/tags/3.0/default.aspx" /><category term="4.0" scheme="http://blogs.inetium.com/blogs/bgoergen/archive/tags/4.0/default.aspx" /><category term="advance find" scheme="http://blogs.inetium.com/blogs/bgoergen/archive/tags/advance+find/default.aspx" /><category term="Pick list" scheme="http://blogs.inetium.com/blogs/bgoergen/archive/tags/Pick+list/default.aspx" /><category term="Bill Goergen" scheme="http://blogs.inetium.com/blogs/bgoergen/archive/tags/Bill+Goergen/default.aspx" /><category term="Inetiium" scheme="http://blogs.inetium.com/blogs/bgoergen/archive/tags/Inetiium/default.aspx" /></entry></feed>