<?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 Filtering with ActiveDocument.Fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209482#M64445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one field ReloadDate which carries only the date when the report was reloaded. I need to compare ReloadDate with current date in a macro written using VBScript.. so how can I do that?&amp;nbsp; &lt;/P&gt;&lt;P&gt;I tried with &lt;/P&gt;&lt;P&gt; set dte = ActiveDocument.Fields("ReloadDate").GetPossibleValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; (dte = Date) then&lt;/P&gt;&lt;P&gt; ------------------&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the type mismatch error occures. Also tried with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; (dte.item(0) = Date) then&lt;/P&gt;&lt;P&gt; ------------------&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But again "Wrong number of arguments or invalid property assignment: 'dte.item'" error occures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to fix the issue??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2012 09:38:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-29T09:38:18Z</dc:date>
    <item>
      <title>Filtering with ActiveDocument.Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209476#M64439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've got a macro:&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;sub Filtro_Sosp_Uff_Comm&lt;BR /&gt; set f = ActiveDocument.Fields("mo_serie")&lt;BR /&gt; set g = ActiveDocument.Fields("Comp_Critico")&lt;BR /&gt; set h = ActiveDocument.Fields("ar_tipo")&lt;BR /&gt; set i = ActiveDocument.Fields("ar_critico")&lt;BR /&gt; set l = ActiveDocument.Fields("Sospeso")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; f.Select "&amp;lt;&amp;gt;" &amp;amp; "C"&lt;BR /&gt; l.Select "S"&lt;BR /&gt; h.Select "M"&lt;BR /&gt; i.Select "&amp;lt;&amp;gt;" &amp;amp; "S"&lt;BR /&gt; g.Select "&amp;lt;&amp;gt;" &amp;amp; "S"&lt;BR /&gt;&lt;BR /&gt;end sub&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I've to filter the data on a tableBox with these conditions:&lt;/P&gt;&lt;P&gt;mo_serie &amp;lt;&amp;gt;'C' and Sospeso = 'S'and ar_critico &amp;lt;&amp;gt; 'S' and ar_tipo ='M' and Comp_Critico &amp;lt;&amp;gt; 'S'&lt;/P&gt;&lt;P&gt;but the macro doesn't work.&lt;/P&gt;&lt;P&gt;Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 16:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209476#M64439</guid>
      <dc:creator />
      <dc:date>2010-06-30T16:16:14Z</dc:date>
    </item>
    <item>
      <title>Filtering with ActiveDocument.Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209477#M64440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&amp;lt;pre&amp;gt;sub Filtro_Sosp_Uff_Comm&lt;BR /&gt; set f = ActiveDocument.Fields("mo_serie")&lt;BR /&gt; set g = ActiveDocument.Fields("Comp_Critico")&lt;BR /&gt; set h = ActiveDocument.Fields("ar_tipo")&lt;BR /&gt; set i = ActiveDocument.Fields("ar_critico")&lt;BR /&gt; set l = ActiveDocument.Fields("Sospeso")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; f.Select "&amp;lt;&amp;gt;C"&lt;BR /&gt; l.Select "S"&lt;BR /&gt; h.Select "M"&lt;BR /&gt; i.Select "&amp;lt;&amp;gt;S"&lt;BR /&gt; g.Select "&amp;lt;&amp;gt;S"&lt;BR /&gt;&lt;BR /&gt;end sub&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But I have a question, why are you using macro for this? You can do this manually in an application. If you need this for data access restriction with data reduction, it will be better use the Security Section Access.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 16:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209477#M64440</guid>
      <dc:creator />
      <dc:date>2010-06-30T16:54:34Z</dc:date>
    </item>
    <item>
      <title>Filtering with ActiveDocument.Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209478#M64441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, you can combine both:&lt;BR /&gt;- In application, make selections and save as boomark.&lt;BR /&gt;- In macro, only recall this bookmark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jun 2010 18:27:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209478#M64441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-30T18:27:07Z</dc:date>
    </item>
    <item>
      <title>Filtering with ActiveDocument.Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209479#M64442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've three charts wich count the number of record that match three conditions.&lt;/P&gt;&lt;P&gt;I'd like to open a table clicking on the chart filtered with the same conditions.&lt;/P&gt;&lt;P&gt;To do this i've created a button with a macro associated. attacched you will find the qvw.&lt;/P&gt;&lt;P&gt;The macro are associated in the 3rd and 4th sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 08:10:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209479#M64442</guid>
      <dc:creator />
      <dc:date>2010-07-01T08:10:20Z</dc:date>
    </item>
    <item>
      <title>Filtering with ActiveDocument.Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209480#M64443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobody can Help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jul 2010 09:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209480#M64443</guid>
      <dc:creator />
      <dc:date>2010-07-02T09:28:41Z</dc:date>
    </item>
    <item>
      <title>Filtering with ActiveDocument.Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209481#M64444</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 have the same problem&lt;/P&gt;&lt;P&gt;set margenDurEvento=ActiveDocument.GetVariable("MargenDurEvento")&lt;BR /&gt; set margenMontoDesc=ActiveDocument.GetVariable("MargenMontoDesc")&lt;BR /&gt; set f = ActiveDocument.Fields("Descuentos.DIF_DURACION")&lt;BR /&gt; set g = ActiveDocument.Fields("Descuentos.DIF_MONTO_DESC")&lt;BR /&gt; f.Select("&amp;gt;" &amp;amp; margenDurEvento.GetContent.String)&lt;BR /&gt; g.Select("&amp;gt;" &amp;amp; margenMontoDesc.GetContent.String)&lt;/P&gt;&lt;P&gt;I need something like&lt;/P&gt;&lt;P&gt;f.Select("&amp;gt;" &amp;amp; margenDurEvento.GetContent.String) AND g.Select("&amp;gt;" &amp;amp; margenMontoDesc.GetContent.String)&lt;/P&gt;&lt;P&gt;Thanks in advance &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 20:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209481#M64444</guid>
      <dc:creator />
      <dc:date>2010-07-23T20:29:29Z</dc:date>
    </item>
    <item>
      <title>Filtering with ActiveDocument.Fields</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209482#M64445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one field ReloadDate which carries only the date when the report was reloaded. I need to compare ReloadDate with current date in a macro written using VBScript.. so how can I do that?&amp;nbsp; &lt;/P&gt;&lt;P&gt;I tried with &lt;/P&gt;&lt;P&gt; set dte = ActiveDocument.Fields("ReloadDate").GetPossibleValues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; (dte = Date) then&lt;/P&gt;&lt;P&gt; ------------------&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the type mismatch error occures. Also tried with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if&amp;nbsp; (dte.item(0) = Date) then&lt;/P&gt;&lt;P&gt; ------------------&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But again "Wrong number of arguments or invalid property assignment: 'dte.item'" error occures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to fix the issue??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2012 09:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-with-ActiveDocument-Fields/m-p/209482#M64445</guid>
      <dc:creator />
      <dc:date>2012-05-29T09:38:18Z</dc:date>
    </item>
  </channel>
</rss>

