<?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: How to trigger a macro on every tab selection in a container in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-trigger-a-macro-on-every-tab-selection-in-a-container/m-p/436894#M162973</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;murozel76 wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, we would be much better off if Qliktech added "trigger" functionality to all sheet objects and container tabs! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agreed!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Sep 2012 14:37:34 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2012-09-25T14:37:34Z</dc:date>
    <item>
      <title>How to trigger a macro on every tab selection in a container</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-trigger-a-macro-on-every-tab-selection-in-a-container/m-p/436891#M162970</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 a container with 6 tabs and a number of buttons on a sheet. I have written a macro so that some of the buttons will be disabled/enabled depending on the active tab of the container. The macro works fine, however I couldn't yet find a way to make it run automatically when the active tab of the container changes i.e. on every change of the "SingleObjectActiveIndex" value of the container. Is it possible to have a trigger like this? Otherwise, I will need another button to run the macro and it should be used after each time the user changes the active tab in the container, which would be no good practice, IMO.&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sub ButtonStatus&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set MV_ContainerObj = ActiveDocument.GetSheetObject("CT13")&lt;BR /&gt;Set MV_ContProp = MV_ContainerObj.GetProperties &lt;BR /&gt;MV_ActiveIndex = MV_ContProp.SingleObjectActiveIndex &lt;/P&gt;&lt;P&gt;set MV_Button = ActiveDocument.GetSheetObject("BU113") &lt;BR /&gt;set MV_ButtonProp = MV_Button.GetProperties &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set v = ActiveDocument.Variables("vCT13ActiveIndex")&lt;BR /&gt;v.SetContent MV_ActiveIndex,true (Note: I use This document variable [vCT13ActiveIndex]&amp;nbsp; in the "enable condition" of the relevant button)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 06:33:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-trigger-a-macro-on-every-tab-selection-in-a-container/m-p/436891#M162970</guid>
      <dc:creator>murozel76</dc:creator>
      <dc:date>2012-09-25T06:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a macro on every tab selection in a container</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-trigger-a-macro-on-every-tab-selection-in-a-container/m-p/436892#M162971</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;There is no trigger for container selection changes, so as far as I know there is no way of firing your macro simply by changing the container selection. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use a manual action , but I agree that it is not a very good approach. Another alternative is to set the container tabs to drop down and overlay buttons in place of the container tabs. The buttons should select the appropriate tab and control the active state of the other buttons on the sheet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a screenshot of what I mean:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="22446" class="jive-image" alt="test.png" src="https://community.qlik.com/legacyfs/online/22446_test.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have a script for changing container tabs in a macro, but I am sure that you can find that in the forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 06:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-trigger-a-macro-on-every-tab-selection-in-a-container/m-p/436892#M162971</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-09-25T06:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a macro on every tab selection in a container</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-trigger-a-macro-on-every-tab-selection-in-a-container/m-p/436893#M162972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much, Jonathan. I followed your advice and also managed to change the selected tab in a container via macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, we would be much better off if Qliktech added "trigger" functionality to all sheet objects and container tabs! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 08:24:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-trigger-a-macro-on-every-tab-selection-in-a-container/m-p/436893#M162972</guid>
      <dc:creator>murozel76</dc:creator>
      <dc:date>2012-09-25T08:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger a macro on every tab selection in a container</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-trigger-a-macro-on-every-tab-selection-in-a-container/m-p/436894#M162973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;murozel76 wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, we would be much better off if Qliktech added "trigger" functionality to all sheet objects and container tabs! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agreed!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 14:37:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-trigger-a-macro-on-every-tab-selection-in-a-container/m-p/436894#M162973</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2012-09-25T14:37:34Z</dc:date>
    </item>
  </channel>
</rss>

