<?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: Clear variable when Field is cleared in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647375#M237090</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I have, doesn't seem to work when I place this in the field trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been testing it- for some reason it's not 'activating' when I clear all, it will update when I choose a new date, but simply wont clear the var for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it has something to do with me setting the date based on the link above, and not simply a selection in a list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: gimmie 15 mins, I'm gonna have to get a sample document up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2014 08:40:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-11T08:40:06Z</dc:date>
    <item>
      <title>Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647367#M237082</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 have followed this guide: &lt;A href="http://www.learnqlickview.com/dynamic-calendar-widget-in-qlikview/" title="http://www.learnqlickview.com/dynamic-calendar-widget-in-qlikview/"&gt;http://www.learnqlickview.com/dynamic-calendar-widget-in-qlikview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and have a document setup like above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I clear my "Date" field, I would like to also clear the dateFrom and dateTo variables, but how can I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, when you clear the date field- the calendar object still has the old dates- which can easily fool a user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 10:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647367#M237082</guid>
      <dc:creator />
      <dc:date>2014-06-10T10:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647368#M237083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead, maybe create a button that clears all three of those at once through three actions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 18:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647368#M237083</guid>
      <dc:creator />
      <dc:date>2014-06-10T18:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647369#M237084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That works, but is not very user friendly- have a clear button on the page, and an offical clear all button (that doesn't clear all) on the toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a Qlikview feature I think should really be implemented, an "on clear" trigger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 07:45:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647369#M237084</guid>
      <dc:creator />
      <dc:date>2014-06-11T07:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647370#M237085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;does it work for you if you put in your variables if(getselectedcount(Date)&amp;gt;0, datefrom)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 07:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647370#M237085</guid>
      <dc:creator>michael_maeuser</dc:creator>
      <dc:date>2014-06-11T07:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647371#M237086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I used OnSelect trigger for Calendar.Month Field&lt;/P&gt;&lt;P&gt;=IF(GetSelectedCount(Calendar.Month)=0 AND GetSelectedCount(Calendar.Year)=0,Null(),vDateTo)&lt;/P&gt;&lt;P&gt;=IF(GetSelectedCount(Calendar.Month)=0 AND GetSelectedCount(Calendar.Year)=0,Null(),vDateFrom)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably you need it also for Calendar.Year&lt;/P&gt;&lt;P&gt;PFA an example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 08:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647371#M237086</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-06-11T08:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647372#M237087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This example isn't working for me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 08:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647372#M237087</guid>
      <dc:creator />
      <dc:date>2014-06-11T08:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647373#M237088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you try this variable =&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;if(getselectedcount(Date)&amp;gt;0, datefrom)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;datefrom should reflect your current datefrom variable expression&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 08:27:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647373#M237088</guid>
      <dc:creator>michael_maeuser</dc:creator>
      <dc:date>2014-06-11T08:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647374#M237089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;But it's working if I clear selections with Clear button or just deselect month.&lt;/P&gt;&lt;P&gt;In this example there are no date, only month, year. But you can use it with small changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 08:28:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647374#M237089</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-06-11T08:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647375#M237090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I have, doesn't seem to work when I place this in the field trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been testing it- for some reason it's not 'activating' when I clear all, it will update when I choose a new date, but simply wont clear the var for some reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it has something to do with me setting the date based on the link above, and not simply a selection in a list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit: gimmie 15 mins, I'm gonna have to get a sample document up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 08:40:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647375#M237090</guid>
      <dc:creator />
      <dc:date>2014-06-11T08:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647376#M237091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please see the sample document and advise how I would implement your proposed solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 08:45:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647376#M237091</guid>
      <dc:creator />
      <dc:date>2014-06-11T08:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647377#M237092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see my attached document, could you see how I would implement your solution? I can't seem to get yours working in my environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 08:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647377#M237092</guid>
      <dc:creator />
      <dc:date>2014-06-11T08:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647378#M237093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;P&gt;In my opinion it works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 08:50:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647378#M237093</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-06-11T08:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647379#M237094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sergey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's now working my example document- must be something weird going on in my actual document because it still isn't working there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you've answered the problem though so have marked you as correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 08:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647379#M237094</guid>
      <dc:creator />
      <dc:date>2014-06-11T08:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647380#M237095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can share your original application.&lt;/P&gt;&lt;P&gt;But probably you need to reduce (File\Reduce Data) and Scramble data (Settings\Document Properties\Scrambling - select some fields and click Scramble)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 08:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647380#M237095</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-06-11T08:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647381#M237096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok Sergey, let's see you solve this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why the hell isn't it working in this document?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 09:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647381#M237096</guid>
      <dc:creator />
      <dc:date>2014-06-11T09:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Clear variable when Field is cleared</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647382#M237097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So. it works as well&lt;/P&gt;&lt;P&gt;I added trigger for a field Omniture.Date OnSelect&lt;/P&gt;&lt;P&gt;Set Variable dateFrom with value =IF(GetSelectedCount(Omniture.Date)=0 AND GetSelectedCount(Omniture.Date)=0,Null(),dateFrom)&lt;/P&gt;&lt;P&gt;Set Variable dateTo with value =IF(GetSelectedCount(Omniture.Date)=0 AND GetSelectedCount(Omniture.Date)=0,Null(),dateTo)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 04:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-when-Field-is-cleared/m-p/647382#M237097</guid>
      <dc:creator>SergeyMak</dc:creator>
      <dc:date>2014-06-12T04:04:27Z</dc:date>
    </item>
  </channel>
</rss>

