<?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 to null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932605#M967390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look here: &lt;A href="http://www.qlikblog.at/852/" title="http://www.qlikblog.at/852/"&gt;QlikTip #9: Deleting variables via user-interface, within the load-script or by using macros (translated)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Oct 2016 08:29:17 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2016-10-09T08:29:17Z</dc:date>
    <item>
      <title>Clear variable to null</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932603#M967388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a challenge where I'm trying to clear a variable to Null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do this in the load script, but then once the variable is input via the calendar, it isn't possible to then set as Null. I have tried the action to set variable to blank or to null, but it doesn't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can set the variable to a value within the data set, i.e another date but cannot clear it or set it to null. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With thanks,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2015 09:54:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932603#M967388</guid>
      <dc:creator />
      <dc:date>2015-09-24T09:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable to null</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932604#M967389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Simon&lt;/P&gt;&lt;P&gt;I think, You've got a solution already.&lt;/P&gt;&lt;P&gt;But if not You could look at the nice solution.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1113966"&gt;Re: How to make the default clear all button clear variables; without using macros&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Selecting the only possible value in the listbox You clear the variable.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(You can go to Document setting and see Field Event Trigger)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/140081_Image.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2016 14:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932604#M967389</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-08T14:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable to null</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932605#M967390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look here: &lt;A href="http://www.qlikblog.at/852/" title="http://www.qlikblog.at/852/"&gt;QlikTip #9: Deleting variables via user-interface, within the load-script or by using macros (translated)&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Oct 2016 08:29:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932605#M967390</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-09T08:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable to null</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932606#M967391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You, Marcus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could You give an advise, please.&lt;/P&gt;&lt;P&gt;Is there a way to Clear all Variables of an app in front-end of Qlik Sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Oct 2016 13:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932606#M967391</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-09T13:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable to null</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932607#M967392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think not really ... &lt;A href="https://community.qlik.com/message/1133517"&gt;Re: How to delete all my variables within an app&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 06:57:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932607#M967392</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-10-10T06:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable to null</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932608#M967393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks, Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 09:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932608#M967393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-10-10T09:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Clear variable to null</title>
      <link>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932609#M967395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Simon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could write a simple script ex: on a button click action like as follows. The script below clears any user defined variables(assuming that they start either with a 'e' or a 'v'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub ClearVarValues&lt;/P&gt;&lt;P&gt;set vars = ActiveDocument.GetVariableDescriptions&lt;/P&gt;&lt;P&gt;for i = 0 to vars.Count - 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set v = vars.Item(i)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set vdef = ActiveDocument.Variables(v.Name)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartLetter=left(v.Name,1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if StartLetter="v" or StartLetter="e" then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vdef.SetContent "",true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Msgbox(v.Name&amp;amp;"&amp;nbsp; "&amp;amp;vdef.GetRawContent)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;set vars=nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 13:08:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Clear-variable-to-null/m-p/932609#M967395</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2016-10-10T13:08:14Z</dc:date>
    </item>
  </channel>
</rss>

