<?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: OnChange or OnSelect previous value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OnChange-or-OnSelect-previous-value/m-p/469095#M695147</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK got it now!&lt;/P&gt;&lt;P&gt;It works with OnSelect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2013 06:54:34 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2013-05-17T06:54:34Z</dc:date>
    <item>
      <title>OnChange or OnSelect previous value</title>
      <link>https://community.qlik.com/t5/QlikView/OnChange-or-OnSelect-previous-value/m-p/469093#M695145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi fellow QlikView addicts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user is selecting some value in a list box, I want to check that value and restore the previous selection if the check fails. Creating a macro for the checking was easy, but how can I restore the previous value? Bookmark or saving it to a variable does not seem possible as it looks like that when the macro runs, the new value has already been selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas would be really appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnChange-or-OnSelect-previous-value/m-p/469093#M695145</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-05-17T06:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: OnChange or OnSelect previous value</title>
      <link>https://community.qlik.com/t5/QlikView/OnChange-or-OnSelect-previous-value/m-p/469094#M695146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can save the pervious selection in a variable using:&amp;nbsp; =Only({$1}Person)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here Person is my field it will always save the previous value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the idea is: when you checked your current selection you can eaisly change some variable value depending on the pass or fail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say if the current selection is ok then vSelection is 1 else 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now put a trigger on variable&amp;gt; on value chage &amp;gt; selections in field and in search string if(vselection=1,vCurrent,vPrevious)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCurrent: =only(Person)&lt;/P&gt;&lt;P&gt;vPrevious= only({$1} Person)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Sushil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:38:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnChange-or-OnSelect-previous-value/m-p/469094#M695146</guid>
      <dc:creator>sushil353</dc:creator>
      <dc:date>2013-05-17T06:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: OnChange or OnSelect previous value</title>
      <link>https://community.qlik.com/t5/QlikView/OnChange-or-OnSelect-previous-value/m-p/469095#M695147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK got it now!&lt;/P&gt;&lt;P&gt;It works with OnSelect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OnChange-or-OnSelect-previous-value/m-p/469095#M695147</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2013-05-17T06:54:34Z</dc:date>
    </item>
  </channel>
</rss>

