<?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: Get content from ActiveDocument.Fields() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-content-from-ActiveDocument-Fields/m-p/197271#M57012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/gradiske" id="jive-5123026713905379665849"&gt;gradiske&lt;/A&gt;, &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/tim.benoit" id="jive-356026713905460714849"&gt;Tim Benoit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a similar problem. 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:04:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-29T09:04:30Z</dc:date>
    <item>
      <title>Get content from ActiveDocument.Fields()</title>
      <link>https://community.qlik.com/t5/QlikView/Get-content-from-ActiveDocument-Fields/m-p/197269#M57010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, im having a little trouble here.&lt;/P&gt;&lt;P&gt;What im trying to do is, set a var with the content of a ActiveDocument.Fields.&lt;/P&gt;&lt;P&gt;I tried this at first&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub testvar&lt;/P&gt;&lt;P&gt;f = ActiveDocument.Fields("email").SelectAll&lt;/P&gt;&lt;P&gt;msgbox(f)&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But all im getting on this is "TRUE"... i want to display the content of this selection... but let me explain one thing, i know that is ONLY ONE possibility on this selection... cause its based on section access so, when the person is using the application, the field "email" will only return his email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried the ".GetContent.String" that i use a lot with "ActiveDocument.Variables" but got no success...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 19:52:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-content-from-ActiveDocument-Fields/m-p/197269#M57010</guid>
      <dc:creator>gradiske</dc:creator>
      <dc:date>2011-04-04T19:52:05Z</dc:date>
    </item>
    <item>
      <title>Get content from ActiveDocument.Fields()</title>
      <link>https://community.qlik.com/t5/QlikView/Get-content-from-ActiveDocument-Fields/m-p/197270#M57011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's the first part of what you want to do:&lt;/P&gt;&lt;P&gt;Set val=ActiveDocument.Fields("email").GetPossibleValues&lt;BR /&gt; current_email=val.item(0)&lt;/P&gt;&lt;P&gt;At that point you will have the email field value in the vbscript variable &lt;EM&gt;current_email&lt;/EM&gt;. Then you need to put that into a document variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2011 20:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-content-from-ActiveDocument-Fields/m-p/197270#M57011</guid>
      <dc:creator />
      <dc:date>2011-04-04T20:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get content from ActiveDocument.Fields()</title>
      <link>https://community.qlik.com/t5/QlikView/Get-content-from-ActiveDocument-Fields/m-p/197271#M57012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/gradiske" id="jive-5123026713905379665849"&gt;gradiske&lt;/A&gt;, &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/tim.benoit" id="jive-356026713905460714849"&gt;Tim Benoit&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a similar problem. 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:04:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-content-from-ActiveDocument-Fields/m-p/197271#M57012</guid>
      <dc:creator />
      <dc:date>2012-05-29T09:04:30Z</dc:date>
    </item>
  </channel>
</rss>

