<?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 today button in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/today-button/m-p/341599#M1176386</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use This Macro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sub SetToToday()&lt;BR /&gt;dim thisYear, thisMonth, thisDay, datestamp&lt;BR /&gt;set v = ActiveDocument.Variables("vMaxDay")&lt;BR /&gt;set vToday = v.GetContent&lt;BR /&gt;set v2 = ActiveDocument.Variables("vMaxMonth")&lt;BR /&gt;set vMonth = v2.GetContent&lt;BR /&gt;thisYear = year(vToday.String)&lt;BR /&gt;thisMonth = vMonth.String&lt;BR /&gt;thisDay = day(vToday.String) &lt;BR /&gt;ActiveDocument.Fields("Day").Select thisDay&lt;BR /&gt;ActiveDocument.Fields("Year").Select thisYear&lt;BR /&gt;ActiveDocument.Fields("Month").Select thisMonth&lt;BR /&gt;end sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2012 09:34:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-16T09:34:52Z</dc:date>
    <item>
      <title>today button</title>
      <link>https://community.qlik.com/t5/QlikView/today-button/m-p/341595#M1176382</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 would like to add a button that will calculate the current date ? does any one have a simple macro for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&amp;nbsp; alot &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2012 11:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/today-button/m-p/341595#M1176382</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-07T11:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: today button</title>
      <link>https://community.qlik.com/t5/QlikView/today-button/m-p/341596#M1176383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, there are built-in QV functions to retrieve the current date and time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class="Bold"&gt;now(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[ timer_mode]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Returns a timestamp of the current time from the system clock. The timer_mode may have the following values:&lt;/P&gt;&lt;P&gt;0 Time at script run&lt;BR /&gt;1 Time at function call&lt;BR /&gt;2 Time when the document was opened&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Default &lt;SPAN class="Italic"&gt;timer_mode&lt;/SPAN&gt; is 1. The &lt;SPAN class="Italic"&gt;timer_mode = 1&lt;/SPAN&gt; should be used with caution, since it polls the operating system every second and hence could slow down the system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;SPAN class="Bold"&gt;today(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[timer_mode]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Returns the current date from the system clock. The &lt;SPAN class="Italic"&gt;timer_mode&lt;/SPAN&gt; may have the following values:&lt;/P&gt;&lt;P&gt;0 Date at script run&lt;BR /&gt;1 Date at function call&lt;BR /&gt;2 Date when the document was opened&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Default &lt;SPAN class="Italic"&gt;timer_mode&lt;/SPAN&gt; is 2. The &lt;SPAN class="Italic"&gt;timer_mode = 1&lt;/SPAN&gt; should be used with caution, since it polls the operating system every second and hence could slow down the system. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am not sure why you want to use a macro for that, what do you want to do with the current date?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Apr 2012 13:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/today-button/m-p/341596#M1176383</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-04-07T13:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: today button</title>
      <link>https://community.qlik.com/t5/QlikView/today-button/m-p/341597#M1176384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: &amp;amp;quot;Arial&amp;amp;quot;,&amp;amp;quot;sans-serif&amp;amp;quot;; font-size: 10pt;"&gt;I have a calendar in my model and I would like to a "TODAY" button that by pressing it the calendar will move/ show the current date I don’t see how I can do this with QV functions you mentioned above?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2012 07:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/today-button/m-p/341597#M1176384</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-08T07:17:39Z</dc:date>
    </item>
    <item>
      <title>today button</title>
      <link>https://community.qlik.com/t5/QlikView/today-button/m-p/341598#M1176385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think it should be sufficient to create a button with action 'Selection' - 'Select in Field', then enter your field name (just the name, no equal sign etc) into the field entry box and as search expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=today()&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Apr 2012 18:21:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/today-button/m-p/341598#M1176385</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-04-08T18:21:29Z</dc:date>
    </item>
    <item>
      <title>today button</title>
      <link>https://community.qlik.com/t5/QlikView/today-button/m-p/341599#M1176386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use This Macro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sub SetToToday()&lt;BR /&gt;dim thisYear, thisMonth, thisDay, datestamp&lt;BR /&gt;set v = ActiveDocument.Variables("vMaxDay")&lt;BR /&gt;set vToday = v.GetContent&lt;BR /&gt;set v2 = ActiveDocument.Variables("vMaxMonth")&lt;BR /&gt;set vMonth = v2.GetContent&lt;BR /&gt;thisYear = year(vToday.String)&lt;BR /&gt;thisMonth = vMonth.String&lt;BR /&gt;thisDay = day(vToday.String) &lt;BR /&gt;ActiveDocument.Fields("Day").Select thisDay&lt;BR /&gt;ActiveDocument.Fields("Year").Select thisYear&lt;BR /&gt;ActiveDocument.Fields("Month").Select thisMonth&lt;BR /&gt;end sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 09:34:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/today-button/m-p/341599#M1176386</guid>
      <dc:creator />
      <dc:date>2012-04-16T09:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: today button</title>
      <link>https://community.qlik.com/t5/QlikView/today-button/m-p/341600#M1176387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hope the attached file will be helpful for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2012 10:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/today-button/m-p/341600#M1176387</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-16T10:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: today button</title>
      <link>https://community.qlik.com/t5/QlikView/today-button/m-p/341601#M1176388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank alot It helped alot &lt;/P&gt;&lt;P&gt;How can I add a trigger so that each time u open the model the button will be pressed &lt;/P&gt;&lt;P&gt;And the current date will be shown ? Thanks again &lt;/P&gt;&lt;P&gt;B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 15:56:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/today-button/m-p/341601#M1176388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-17T15:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: today button</title>
      <link>https://community.qlik.com/t5/QlikView/today-button/m-p/341602#M1176389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you don't need a macro for that, you can do all this with a selection - select in field action, see also attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But anyway, if you want to run the selection or macro action on opening of the document, just create an appropriate trigger in &lt;/P&gt;&lt;P&gt;document settings - triggers (see also attached).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 18:16:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/today-button/m-p/341602#M1176389</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-04-17T18:16:14Z</dc:date>
    </item>
  </channel>
</rss>

