<?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: Syntax error while testing the macro with date filter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-error-while-testing-the-macro-with-date-filter/m-p/461400#M172291</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sub SetClearState_Dashboard()&lt;/P&gt;&lt;P&gt;ActiveDocument.SetClearAll&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("calendar_date").Select calendar_date&amp;gt;=date()-365 and calendar_date&amp;lt;=date()&lt;/P&gt;&lt;P&gt;ActiveDocument.SetClearState&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;When I ran above fucntion it is giving below mentioned error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Object doesn't support this property or method: 'ActiveDocument.SetClearAll'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have commented &lt;STRONG&gt;'ActiveDocument.SetClearAll' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; ran there are no compile errors but it is not filtering the dates when i am accesing from app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me calling setclearall function from macro and filtering the dates..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Mar 2013 21:42:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-20T21:42:49Z</dc:date>
    <item>
      <title>Syntax error while testing the macro with date filter</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-error-while-testing-the-macro-with-date-filter/m-p/461399#M172290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have coded a macro which clears all the selections and selects 1 year calendar dates. When I have coded below it is giving syntax error can I know what is the right way to incorporated condition in the macro&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub SetClearState_Dashboard()&lt;/P&gt;&lt;P&gt;ActiveDocument.SetClearAll&lt;/P&gt;&lt;P&gt;v1.SetContent date()-365,true&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("calendar_date").Select ='&amp;gt;=' &amp;amp; DATE(ADDMONTHS(TODAY(),-12)) &amp;amp; '&amp;lt;=' &amp;amp; TODAY()&lt;/P&gt;&lt;P&gt;ActiveDocument.SetClearState &lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 15:02:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-error-while-testing-the-macro-with-date-filter/m-p/461399#M172290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-20T15:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax error while testing the macro with date filter</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-error-while-testing-the-macro-with-date-filter/m-p/461400#M172291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sub SetClearState_Dashboard()&lt;/P&gt;&lt;P&gt;ActiveDocument.SetClearAll&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("calendar_date").Select calendar_date&amp;gt;=date()-365 and calendar_date&amp;lt;=date()&lt;/P&gt;&lt;P&gt;ActiveDocument.SetClearState&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;When I ran above fucntion it is giving below mentioned error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Object doesn't support this property or method: 'ActiveDocument.SetClearAll'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have commented &lt;STRONG&gt;'ActiveDocument.SetClearAll' &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; ran there are no compile errors but it is not filtering the dates when i am accesing from app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me calling setclearall function from macro and filtering the dates..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2013 21:42:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-error-while-testing-the-macro-with-date-filter/m-p/461400#M172291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-20T21:42:49Z</dc:date>
    </item>
  </channel>
</rss>

