<?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 Retrieving the currently selected date and time range via a VB macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Retrieving-the-currently-selected-date-and-time-range-via-a-VB/m-p/181379#M47428</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 a date field in my Qlikview report of the format 2009-12-07 23:26:09.&lt;/P&gt;&lt;P&gt;I am launching an external application via a button macro that requires a start date/time and end date/time and I would like to pass the current filtered date/time range in the format:&lt;/P&gt;&lt;P&gt;from_date=YYYY.MM.DD&lt;/P&gt;&lt;P&gt;from_time=HH:MM&lt;/P&gt;&lt;P&gt;Is there a way to extract the currently active date/time start and end range from the report using a VBScript macro?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2009 19:59:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-09T19:59:39Z</dc:date>
    <item>
      <title>Retrieving the currently selected date and time range via a VB macro</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieving-the-currently-selected-date-and-time-range-via-a-VB/m-p/181379#M47428</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 a date field in my Qlikview report of the format 2009-12-07 23:26:09.&lt;/P&gt;&lt;P&gt;I am launching an external application via a button macro that requires a start date/time and end date/time and I would like to pass the current filtered date/time range in the format:&lt;/P&gt;&lt;P&gt;from_date=YYYY.MM.DD&lt;/P&gt;&lt;P&gt;from_time=HH:MM&lt;/P&gt;&lt;P&gt;Is there a way to extract the currently active date/time start and end range from the report using a VBScript macro?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Sandy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 19:59:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieving-the-currently-selected-date-and-time-range-via-a-VB/m-p/181379#M47428</guid>
      <dc:creator />
      <dc:date>2009-12-09T19:59:39Z</dc:date>
    </item>
    <item>
      <title>Retrieving the currently selected date and time range via a VB macro</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieving-the-currently-selected-date-and-time-range-via-a-VB/m-p/181380#M47429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry - I have found my own answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub UTEL&lt;/P&gt;&lt;P&gt;Dim utelimsi&lt;/P&gt;&lt;P&gt;Dim mindate&lt;/P&gt;&lt;P&gt;DIm mintime&lt;/P&gt;&lt;P&gt;Dim maxdate&lt;/P&gt;&lt;P&gt;Dim maxtime&lt;/P&gt;&lt;P&gt;utelimsi = ActiveDocument.Evaluate("imsi")&lt;/P&gt;&lt;P&gt;mindate = ActiveDocument.Evaluate("date(min(date),'YYYY.MM.DD')")&lt;/P&gt;&lt;P&gt;maxdate = ActiveDocument.Evaluate("date(max(date),'YYYY.MM.DD')")&lt;/P&gt;&lt;P&gt;mintime = ActiveDocument.Evaluate("time(min(date),'HH')")&lt;/P&gt;&lt;P&gt;maxtime = ActiveDocument.Evaluate("time(max(date),'HH')")&lt;/P&gt;&lt;P&gt;set WshShell = CreateObject("WScript.Shell")&lt;/P&gt;&lt;P&gt;WshShell.Run "iexplore.exe http://10.0.1.98/cgi-bin/uqos/tcapsearch.pl??Action=Search&amp;amp;Category=TCAP&amp;amp;From_Date="&amp;amp;mindate&amp;amp;"&amp;amp;From_Time="&amp;amp;mintime&amp;amp;":00&amp;amp;To_Date="&amp;amp;maxdate&amp;amp;"&amp;amp;To_Time="&amp;amp;maxtime&amp;amp;":59&amp;amp;Field=imsi&amp;amp;Operator=&amp;amp;Value=&amp;amp;bind1=and&amp;amp;Sub=&amp;amp;bind2=and&amp;amp;Expression=((imsi="&amp;amp;utelimsi&amp;amp;"))&amp;amp;Button=View",3,true&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 22:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieving-the-currently-selected-date-and-time-range-via-a-VB/m-p/181380#M47429</guid>
      <dc:creator />
      <dc:date>2009-12-09T22:40:01Z</dc:date>
    </item>
  </channel>
</rss>

