<?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: Set Date in field for macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Date-in-field-for-macro/m-p/1397588#M459251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks m&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement ActiveDocument.Fields("AllocationDateAHR").select Date-90 actually works for selecting a single day but what I cannot figure out is how to capture all the dates after that. The script does not like &amp;lt; symbols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Oct 2017 12:41:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-20T12:41:40Z</dc:date>
    <item>
      <title>Set Date in field for macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Date-in-field-for-macro/m-p/1397586#M459249</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 am trying to create a macro that will output a HTML format table. I want the selection to include any records with a date 90 days ago or newer.&lt;/P&gt;&lt;P&gt;While i can output the HTML table ok i cannot select the date range. I realise the macro has a fixed date which works fine but I need to include all dates from then to the present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Macro is simply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub OnReload()&lt;/P&gt;&lt;P&gt;ActiveDocument.Fields("AllocationDateAHR").select Date-90&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("TB08").ExportHtml "\\san\Common\Allocations\Test.html"&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried set analysis in the above macro but it is not recognised.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All suggestions welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Clive&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 15:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Date-in-field-for-macro/m-p/1397586#M459249</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-19T15:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Date in field for macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Date-in-field-for-macro/m-p/1397587#M459250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe: "=today()-90"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, create a variable defined as =today()-90 and bring the value of the variable into your macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 12:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Date-in-field-for-macro/m-p/1397587#M459250</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-10-20T12:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Date in field for macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Date-in-field-for-macro/m-p/1397588#M459251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks m&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement ActiveDocument.Fields("AllocationDateAHR").select Date-90 actually works for selecting a single day but what I cannot figure out is how to capture all the dates after that. The script does not like &amp;lt; symbols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 12:41:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Date-in-field-for-macro/m-p/1397588#M459251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-20T12:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Date in field for macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Date-in-field-for-macro/m-p/1397589#M459252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields("&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;AllocationDateAHR"&lt;/SPAN&gt;).select "&amp;gt;=" &amp;amp; Date-90&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 15:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Date-in-field-for-macro/m-p/1397589#M459252</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2017-10-20T15:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set Date in field for macro</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Date-in-field-for-macro/m-p/1397590#M459253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have nailed it with this one. Thanks for your input it has been really helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clive&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 07:04:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Date-in-field-for-macro/m-p/1397590#M459253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-24T07:04:45Z</dc:date>
    </item>
  </channel>
</rss>

