<?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 Fields.ToggleSelect not working with date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Fields-ToggleSelect-not-working-with-date-range/m-p/231659#M83366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try ActiveDocument in place of ObjDocument&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Aug 2010 18:07:10 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2010-08-24T18:07:10Z</dc:date>
    <item>
      <title>Fields.ToggleSelect not working with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Fields-ToggleSelect-not-working-with-date-range/m-p/231658#M83365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I am getting a very weird problem. I have VBScript which will open Qlikview and select some fields based on some criteria then export it to Excel.&lt;/P&gt;&lt;P&gt;One of the field is a date field and it is select as below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;dim start_of_week&lt;BR /&gt;dim current_date, day_of_week&lt;BR /&gt;current_date = date()&lt;BR /&gt;start_of_week = dateadd("d", -7, current_date) 'COUNT BACK 7 DAYS&lt;BR /&gt;objDocument.fields("S/O Action Date").toggleselect "&amp;gt;=" &amp;amp; start_of_week&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;It is used to work but suddenly this script is no longer working. It is unable to select the date range which is 7 days ago till now. It is selecting everything in "S/O Action Date" field. When I select this field with the same criteria, it is working but not in the script.&lt;/P&gt;&lt;P&gt;Does anyone have this problem before? Any hint to get it work.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 01:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fields-ToggleSelect-not-working-with-date-range/m-p/231658#M83365</guid>
      <dc:creator />
      <dc:date>2010-05-05T01:32:58Z</dc:date>
    </item>
    <item>
      <title>Fields.ToggleSelect not working with date range</title>
      <link>https://community.qlik.com/t5/QlikView/Fields-ToggleSelect-not-working-with-date-range/m-p/231659#M83366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try ActiveDocument in place of ObjDocument&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Aug 2010 18:07:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Fields-ToggleSelect-not-working-with-date-range/m-p/231659#M83366</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2010-08-24T18:07:10Z</dc:date>
    </item>
  </channel>
</rss>

