<?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: Sheet trigger in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549097#M1136877</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you using a macro ?&lt;/P&gt;&lt;P&gt;You can use the action : 'Select in field' with YR = Year(now())&lt;/P&gt;&lt;P&gt;&lt;IMG alt="action.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/47542_action.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 19:22:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-11T19:22:27Z</dc:date>
    <item>
      <title>Sheet trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549096#M1136876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi all&lt;/P&gt;&lt;P&gt;I have an OnActivateSheet trigger which is comprised of 2 actions.&lt;/P&gt;&lt;P&gt;First Action is "Clear All" which works OK.&lt;/P&gt;&lt;P&gt;2nd Action calls for a Run Macro.&lt;/P&gt;&lt;P&gt;The code behind the macro (VBScript) is simple. Here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub SelectCurrentYear()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.Fields("YR").Select Year(now())&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When running the macro from the Edit Module it performs correctly however does not run from the trigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(The same macro is being called from various buttons and performs correctly when they are pressed.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Josh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 18:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549096#M1136876</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2013-10-11T18:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549097#M1136877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why are you using a macro ?&lt;/P&gt;&lt;P&gt;You can use the action : 'Select in field' with YR = Year(now())&lt;/P&gt;&lt;P&gt;&lt;IMG alt="action.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/47542_action.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 19:22:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549097#M1136877</guid>
      <dc:creator />
      <dc:date>2013-10-11T19:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549098#M1136878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Blond&lt;/P&gt;&lt;P&gt;Actually my example was simplified and was to bring a point that a Macro is not triggered in OnActivateSheet.&lt;/P&gt;&lt;P&gt;The actual actionthat I use invokes a macro that selects the last 12 (or 24 or 36) running consecutive months.&lt;/P&gt;&lt;P&gt;I am not sure that this can be achived using Select in Field. (If it is possible, I would like to know how)&lt;/P&gt;&lt;P&gt;I have a VB function, that based on a parameter (12, 24 or 36) selects the number months. But as mentioned it does not work from the trigger but does work when run manuall or from a button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 19:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549098#M1136878</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2013-10-11T19:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Sheet trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549099#M1136879</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;BR /&gt;I hope the qvw attached will help you.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I create a key field in my calendar which is Year*12 + Month, i also created a variable containing the number of running consecutive months to select.&lt;/P&gt;&lt;P&gt;The trigger i created is then based on this field. I didn't use any macros.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 20:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549099#M1136879</guid>
      <dc:creator />
      <dc:date>2013-10-11T20:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549100#M1136880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="hps"&gt;merci beaucoup&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Blond&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 20:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549100#M1136880</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2013-10-11T20:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet trigger</title>
      <link>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549101#M1136881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Merci beaucoup Marie-Sophie &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 10:17:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sheet-trigger/m-p/549101#M1136881</guid>
      <dc:creator>francoiscave</dc:creator>
      <dc:date>2013-10-14T10:17:35Z</dc:date>
    </item>
  </channel>
</rss>

