<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic List box re-sorts when I select an item in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-box-re-sorts-when-I-select-an-item/m-p/254282#M96293</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I did. I create a mapping for my section like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Section Sort&lt;/P&gt;&lt;P&gt;SectionSort:&lt;/P&gt;&lt;P&gt;Mapping Load * Inline [&lt;/P&gt;&lt;P&gt;x, y&lt;/P&gt;&lt;P&gt;"First Section", 1&lt;/P&gt;&lt;P&gt;"Second Section", 2&lt;/P&gt;&lt;P&gt;"Third Section", 3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when I load the data from my query, I created a "SectionCaptionSort" objects like this that uses that mapping ([SectionCaption] is the database field that contains the sections like "First Section", "Second Section" etc):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; , dual([SectionCaption],ApplyMap('SectionSort',[SectionCaption])) As "SectionCaptionSort"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you use the field you created "SectionCaptionSort" as the field to be displayed in your list box (the field box on the General tab of the list box's properties).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then go to the "Sort" tab and uncheck everything. Check "Numeric Value" and sort it Ascending.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2012 17:06:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-14T17:06:06Z</dc:date>
    <item>
      <title>List box re-sorts when I select an item</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-re-sorts-when-I-select-an-item/m-p/254279#M96290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some list boxes that I need to sort in a particular order. So I have been sorting them by an expression. I've tried using a match function in the expression, which sorts them how I need them, and I've tried a map in the load script which also works, then i add that sort item to the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, once I select an item in the list box, the whole list re-sorts itself so that the selected items are at the bottom of the list. How do I change that behavior so that the list stays put, even when items are selected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 16:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-re-sorts-when-I-select-an-item/m-p/254279#M96290</guid>
      <dc:creator />
      <dc:date>2012-01-05T16:21:21Z</dc:date>
    </item>
    <item>
      <title>List box re-sorts when I select an item</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-re-sorts-when-I-select-an-item/m-p/254280#M96291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I figured out what I was doing wrong. When I use the Dual function I also use the applymap function to determine the order for the object. I then name this new object ObjectSort. You have to use the ObjectSort object in field property to display AND you have to sort it numerically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;When you create afield like this in your data model QlikView will treat it as number and use thenumeric value when doing mathmatical operations (+, -, /, *, etc...) andas string when doing string operations (&amp;amp;, MaxString, Index, etc..).&amp;nbsp; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2012 19:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-re-sorts-when-I-select-an-item/m-p/254280#M96291</guid>
      <dc:creator />
      <dc:date>2012-01-05T19:45:46Z</dc:date>
    </item>
    <item>
      <title>List box re-sorts when I select an item</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-re-sorts-when-I-select-an-item/m-p/254281#M96292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you perhaps post a small example, I have the same situation, and cannot follow your explanation.&lt;/P&gt;&lt;P&gt;regards Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-re-sorts-when-I-select-an-item/m-p/254281#M96292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-14T16:18:10Z</dc:date>
    </item>
    <item>
      <title>List box re-sorts when I select an item</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-re-sorts-when-I-select-an-item/m-p/254282#M96293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I did. I create a mapping for my section like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Section Sort&lt;/P&gt;&lt;P&gt;SectionSort:&lt;/P&gt;&lt;P&gt;Mapping Load * Inline [&lt;/P&gt;&lt;P&gt;x, y&lt;/P&gt;&lt;P&gt;"First Section", 1&lt;/P&gt;&lt;P&gt;"Second Section", 2&lt;/P&gt;&lt;P&gt;"Third Section", 3&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then when I load the data from my query, I created a "SectionCaptionSort" objects like this that uses that mapping ([SectionCaption] is the database field that contains the sections like "First Section", "Second Section" etc):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; , dual([SectionCaption],ApplyMap('SectionSort',[SectionCaption])) As "SectionCaptionSort"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you use the field you created "SectionCaptionSort" as the field to be displayed in your list box (the field box on the General tab of the list box's properties).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then go to the "Sort" tab and uncheck everything. Check "Numeric Value" and sort it Ascending.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 17:06:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-re-sorts-when-I-select-an-item/m-p/254282#M96293</guid>
      <dc:creator />
      <dc:date>2012-05-14T17:06:06Z</dc:date>
    </item>
    <item>
      <title>List box re-sorts when I select an item</title>
      <link>https://community.qlik.com/t5/QlikView/List-box-re-sorts-when-I-select-an-item/m-p/254283#M96294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the meantime, I found another way to do it, but I dont know if it's bullet-proof:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Strings to sort are Quarter-FiscalYear concatenations like&lt;/P&gt;&lt;P&gt;Q110, Q210,Q310,Q410,Q111,Q211 where the first 2 characters are the Quarter, the last 2 are the FiscalYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this as the sorting expression:&lt;/P&gt;&lt;P&gt;Only({1}Right(Period,2))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to work also, but not deeply tested yet.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 17:24:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-box-re-sorts-when-I-select-an-item/m-p/254283#M96294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-14T17:24:14Z</dc:date>
    </item>
  </channel>
</rss>

