<?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 auto selecting when one value is only shown in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/List-Box-auto-selecting-when-one-value-is-only-shown/m-p/1748357#M453453</link>
    <description>&lt;P&gt;Hi Experts, hoping you can help me.&lt;/P&gt;&lt;P&gt;I'm looking to get one of my list boxes to automatically highlight its value when there is one value in it.&lt;/P&gt;&lt;P&gt;I.E - customer selects a different List box that shows them a Part number. they select a part number and another list box, that contains batch numbers associated with that selected part shows. when the return from the batch number list box is&amp;nbsp; = 1, the list box should automatically select it so that the&amp;nbsp;associated graph update as well.&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Ciaran&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:53:39 GMT</pubDate>
    <dc:creator>BSCIknowlec</dc:creator>
    <dc:date>2024-11-15T23:53:39Z</dc:date>
    <item>
      <title>List Box auto selecting when one value is only shown</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-auto-selecting-when-one-value-is-only-shown/m-p/1748357#M453453</link>
      <description>&lt;P&gt;Hi Experts, hoping you can help me.&lt;/P&gt;&lt;P&gt;I'm looking to get one of my list boxes to automatically highlight its value when there is one value in it.&lt;/P&gt;&lt;P&gt;I.E - customer selects a different List box that shows them a Part number. they select a part number and another list box, that contains batch numbers associated with that selected part shows. when the return from the batch number list box is&amp;nbsp; = 1, the list box should automatically select it so that the&amp;nbsp;associated graph update as well.&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you,&lt;/P&gt;&lt;P&gt;Ciaran&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-auto-selecting-when-one-value-is-only-shown/m-p/1748357#M453453</guid>
      <dc:creator>BSCIknowlec</dc:creator>
      <dc:date>2024-11-15T23:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: List Box auto selecting when one value is only shown</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-auto-selecting-when-one-value-is-only-shown/m-p/1748406#M453463</link>
      <description>&lt;P&gt;Selection of a field value is an ACTION.&amp;nbsp; actions can be done 2 ways: 1st by a user actually clicking, and 2nd by Triggers.&lt;BR /&gt;i would generally shy from using triggers because it can get cleared when there is no data for the field that triggers the action.&amp;nbsp; but to answer your question directly and as a learning exercise,&lt;/P&gt;&lt;P&gt;set a trigger for the PART.&amp;nbsp; when the PART is selected or changed,&amp;nbsp; set the action to SELECT FIELD BATCH to ONLY(BATCH)&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when a single value of PART is selected, the BATCH associated with that will automatically be selected.&amp;nbsp; of course you need to expand on that.&amp;nbsp; you have to account for what if multiple values are selected what possible user experience you want to program for - what is expected, and all that fun stuff&lt;BR /&gt;&lt;BR /&gt;HAVING SAID THAT...&amp;nbsp; i suggest do it a different way instead (and this im saying without knowing what other business rules/requirements you have).&amp;nbsp; if what you want for example is to enable a chart that is dependent on a BATCH being selected, change the logic a little and set it SAY, conditional to count(distinct BATCH) = 1, or getpossiblecount(BATCH)=1&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 10:44:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-auto-selecting-when-one-value-is-only-shown/m-p/1748406#M453463</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-09-30T10:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: List Box auto selecting when one value is only shown</title>
      <link>https://community.qlik.com/t5/QlikView/List-Box-auto-selecting-when-one-value-is-only-shown/m-p/1748420#M453464</link>
      <description>&lt;P&gt;Hi Edwin,&lt;/P&gt;&lt;P&gt;yes you are absolutely right with your comment. i think the best way would be to change the conditional on my graphs. i had it set to getSelectedCount but your other advice for distinct works better.&lt;/P&gt;&lt;P&gt;thanks you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 11:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/List-Box-auto-selecting-when-one-value-is-only-shown/m-p/1748420#M453464</guid>
      <dc:creator>BSCIknowlec</dc:creator>
      <dc:date>2020-09-30T11:34:31Z</dc:date>
    </item>
  </channel>
</rss>

