<?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: How to Clear Date Values in Calendar Object in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140777#M894012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it is possible with the solution you have. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically you calendar object is using a variable with Min &amp;amp; Max. Regardless of clear or not, variable will store all the time a value, once you make a selection. only way is to clear that variable will clear your calendar.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can try this trick...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Setting - Document Event Trigger --On Any select -- Action -- external -- variable &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;name:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=if(len(GetCurrentSelections())=0,vStartDate,' ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Value:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;null()&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2016 20:35:54 GMT</pubDate>
    <dc:creator>phaneendra_kunc</dc:creator>
    <dc:date>2016-08-05T20:35:54Z</dc:date>
    <item>
      <title>How to Clear Date Values in Calendar Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140774#M894009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I create the date range by using &lt;A _jive_internal="true" href="https://community.qlik.com/thread/67712?sr=inbox&amp;amp;ru=226286" target="_blank"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;Selecting Arbitrary Date Ranges&lt;/SPAN&gt;&lt;/A&gt;. But I don't want to show the date range when user open the QVW file.&lt;/P&gt;&lt;P&gt;So I set up " Setting - Document Event Trigger - OnOpen -- External - Set Variable - Value = null. And I got what I expected for:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/133818_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, once I chose date range from these two Calendar object, I cannot "Clear" the value within the object.&lt;/P&gt;&lt;P&gt;Can anyone let me know how can I clear the date values in the object?&lt;/P&gt;&lt;P&gt; &lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133817_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Becky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140774#M894009</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to Clear Date Values in Calendar Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140775#M894010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using QlikView's default clear button or have you created your own button to clear?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 20:02:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140775#M894010</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-05T20:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to Clear Date Values in Calendar Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140776#M894011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;for this i always use my own clear selections button with the following actions:&lt;/P&gt;&lt;P&gt;Selection -&amp;gt; Clear All&lt;/P&gt;&lt;P&gt;External -&amp;gt; Set Variable -&amp;gt; your variable name as variable and ='' as value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, if you want some fields not to be cleared, you can add a lock action on that field first, then perform the clear selections and after unlock the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you'll ensure that when clearing selections your variable will always be cleared.&lt;/P&gt;&lt;P&gt;Let me know if this helps.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 20:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140776#M894011</guid>
      <dc:creator>santiago_respane</dc:creator>
      <dc:date>2016-08-05T20:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Clear Date Values in Calendar Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140777#M894012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think it is possible with the solution you have. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically you calendar object is using a variable with Min &amp;amp; Max. Regardless of clear or not, variable will store all the time a value, once you make a selection. only way is to clear that variable will clear your calendar.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can try this trick...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Setting - Document Event Trigger --On Any select -- Action -- external -- variable &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;name:&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=if(len(GetCurrentSelections())=0,vStartDate,' ')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Value:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;null()&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2016 20:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140777#M894012</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2016-08-05T20:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to Clear Date Values in Calendar Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140778#M894013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good question Sunny. I was thinking both QlikView default clear button and my own clear button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far I can use my own clear button to clear the date values according to &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="11207" data-externalid="" data-presence="null" data-userid="208748" data-username="santiago.respane" href="https://community.qlik.com/people/santiago.respane"&gt;&lt;STRONG style=": ; color: #0066cc; text-decoration: underline;"&gt;Santiago Respane&lt;/STRONG&gt;&lt;/A&gt;'s solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way also make the QliView default clear button work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Becky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2016 18:26:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140778#M894013</guid>
      <dc:creator />
      <dc:date>2016-08-06T18:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to Clear Date Values in Calendar Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140779#M894014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the great idea Santiago. It works!&lt;/P&gt;&lt;P&gt;After I created variables and clear the selection by my own clear button, it show as below,&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/133836_pastedImage_0.png" /&gt;&lt;/P&gt;&lt;P&gt;So I add another Action - Clear Field - date field name. Then it clears everything in Current Selection.&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/133837_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Becky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2016 18:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140779#M894014</guid>
      <dc:creator />
      <dc:date>2016-08-06T18:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to Clear Date Values in Calendar Object</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140780#M894015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Phaneendra for your idear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your way, but the result doesn't change. I am not sure why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Becky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Aug 2016 18:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-Clear-Date-Values-in-Calendar-Object/m-p/1140780#M894015</guid>
      <dc:creator />
      <dc:date>2016-08-06T18:31:30Z</dc:date>
    </item>
  </channel>
</rss>

