<?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 Re: get last selected value from listbox? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588464#M218197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you need some kind of trigger&lt;/P&gt;&lt;P&gt;Hope below workaround works&lt;/P&gt;&lt;P&gt;Goto &lt;STRONG&gt;Document properties&lt;/STRONG&gt; - &amp;gt; &lt;STRONG&gt;Trigger&lt;/STRONG&gt; -&amp;gt; &lt;STRONG&gt;Field Event Trigger&lt;/STRONG&gt;--&amp;gt;Select a Field "EmployeeName".&lt;/P&gt;&lt;P&gt;Add Action for &lt;STRONG&gt;On Select&lt;/STRONG&gt; event--&amp;gt;chose &lt;STRONG&gt;Select in Field&lt;/STRONG&gt; Action in the &lt;STRONG&gt;Selection&lt;/STRONG&gt; category.&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;Field&lt;/STRONG&gt; type Field name i.e., EmployeeName&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;Search string&lt;/STRONG&gt; use&lt;/P&gt;&lt;P&gt;=if(GetActiveSheetID()=&lt;STRONG&gt;'Document\SH01'&lt;/STRONG&gt;, if(GetSelectedCount(EmployeeName) = 0,MaxString({$1} EmployeeName), MaxString(EmployeeName)), '(' &amp;amp; Concat(DISTINCT EmployeeName, '|') &amp;amp; ')')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that &lt;STRONG&gt;'Document\SH01'&lt;/STRONG&gt; sheet id needs atleast one selected functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when coming to same sheet again you need to use sheet trigger to do some work around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Mar 2014 06:52:46 GMT</pubDate>
    <dc:creator>CELAMBARASAN</dc:creator>
    <dc:date>2014-03-03T06:52:46Z</dc:date>
    <item>
      <title>get last selected value from listbox?</title>
      <link>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588459#M218192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to get the last value that is selected in the listbox. I want to force the listbox to only select the value that was last selected and clear other value if a user makes multiple selections. I basically want to force the user to only make one selection. I used the below code in the onanyselect trigger&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13936730133407268" jivemacro_uid="_13936730133407268"&gt;
&lt;P&gt;=subfield(GetFieldSelections(EmployeeName),',')&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this expression only selects the first value in the alphabetical order of selections. I want to force the trigger to only select the value that was selected in last and clear the other values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this trigger and not the always one selected value property because I want to clear this property when I move to other sheets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 11:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588459#M218192</guid>
      <dc:creator />
      <dc:date>2014-03-01T11:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: get last selected value from listbox?</title>
      <link>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588460#M218193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can make the list box to always one selected.&lt;/P&gt;&lt;P&gt;Which is there in the listbox properties--&amp;gt;General--&amp;gt;Check the always one selected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 11:41:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588460#M218193</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-03-01T11:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: get last selected value from listbox?</title>
      <link>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588461#M218194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Syed,&lt;/P&gt;&lt;P&gt;Looks like the requirement is discussed here. &lt;A _jive_internal="true" href="https://community.qlik.com/thread/58278"&gt;http://community.qlik.com/thread/58278&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can try set analysis or bookmark feature. Check the above mentioned link.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 11:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588461#M218194</guid>
      <dc:creator>Siva_Sankar</dc:creator>
      <dc:date>2014-03-01T11:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: get last selected value from listbox?</title>
      <link>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588462#M218195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by last, I mean the value that was selected at the end. For example, If you make multiple selections, then the value that was selected last should be selected while the others should be cleared. Bookmark will only take me to previous selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is an alternate to always one selected value. I don't want to use the &lt;STRONG&gt;&lt;EM&gt;always one selected value&lt;/EM&gt;&lt;/STRONG&gt; property because I want to clear the field when I move to other sheets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to use the onanyselect trigger and clear the multiple selections and only keep the value that was selected last.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bookmark will take me to all the selections that were made previously&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Syed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 11:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588462#M218195</guid>
      <dc:creator />
      <dc:date>2014-03-01T11:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: get last selected value from listbox?</title>
      <link>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588463#M218196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can't use &lt;STRONG&gt;&lt;EM&gt;always one selected value&lt;/EM&gt;&lt;/STRONG&gt; property because I want to clear the field when I move to other sheets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2014 11:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588463#M218196</guid>
      <dc:creator />
      <dc:date>2014-03-01T11:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: get last selected value from listbox?</title>
      <link>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588464#M218197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you need some kind of trigger&lt;/P&gt;&lt;P&gt;Hope below workaround works&lt;/P&gt;&lt;P&gt;Goto &lt;STRONG&gt;Document properties&lt;/STRONG&gt; - &amp;gt; &lt;STRONG&gt;Trigger&lt;/STRONG&gt; -&amp;gt; &lt;STRONG&gt;Field Event Trigger&lt;/STRONG&gt;--&amp;gt;Select a Field "EmployeeName".&lt;/P&gt;&lt;P&gt;Add Action for &lt;STRONG&gt;On Select&lt;/STRONG&gt; event--&amp;gt;chose &lt;STRONG&gt;Select in Field&lt;/STRONG&gt; Action in the &lt;STRONG&gt;Selection&lt;/STRONG&gt; category.&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;Field&lt;/STRONG&gt; type Field name i.e., EmployeeName&lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;Search string&lt;/STRONG&gt; use&lt;/P&gt;&lt;P&gt;=if(GetActiveSheetID()=&lt;STRONG&gt;'Document\SH01'&lt;/STRONG&gt;, if(GetSelectedCount(EmployeeName) = 0,MaxString({$1} EmployeeName), MaxString(EmployeeName)), '(' &amp;amp; Concat(DISTINCT EmployeeName, '|') &amp;amp; ')')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that &lt;STRONG&gt;'Document\SH01'&lt;/STRONG&gt; sheet id needs atleast one selected functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when coming to same sheet again you need to use sheet trigger to do some work around.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Mar 2014 06:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/get-last-selected-value-from-listbox/m-p/588464#M218197</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2014-03-03T06:52:46Z</dc:date>
    </item>
  </channel>
</rss>

