<?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 Select Tab in the Container using Macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213489#M67201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As per my understanding u need to display the tables(Charts) as per buttons click or sheet activate using some buttons.&lt;/P&gt;&lt;P&gt;I m sending the solution for the both please refer the attached qve application. and revert me back for any clarifications.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Feb 2011 03:31:51 GMT</pubDate>
    <dc:creator>maneshkhottcpl</dc:creator>
    <dc:date>2011-02-15T03:31:51Z</dc:date>
    <item>
      <title>Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213487#M67199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, All!&lt;/P&gt;&lt;P&gt;I have a Container with two tabs (two different tables inside). How could I using macro select one tab or another (accordingly user will see one table or another)?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 16:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213487#M67199</guid>
      <dc:creator />
      <dc:date>2011-02-11T16:05:05Z</dc:date>
    </item>
    <item>
      <title>Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213488#M67200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;up&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 17:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213488#M67200</guid>
      <dc:creator />
      <dc:date>2011-02-14T17:31:35Z</dc:date>
    </item>
    <item>
      <title>Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213489#M67201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As per my understanding u need to display the tables(Charts) as per buttons click or sheet activate using some buttons.&lt;/P&gt;&lt;P&gt;I m sending the solution for the both please refer the attached qve application. and revert me back for any clarifications.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 03:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213489#M67201</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-02-15T03:31:51Z</dc:date>
    </item>
    <item>
      <title>Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213490#M67202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Manesh&lt;/P&gt;&lt;P&gt;Thanks. But I want that these tables are placed in the Container (please, see attach). If we click of first button - first tab will be displayed, second button - second tab will be displayed. Could you advice?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 13:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213490#M67202</guid>
      <dc:creator />
      <dc:date>2011-02-15T13:03:56Z</dc:date>
    </item>
    <item>
      <title>Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213491#M67203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please refer the attached application.&lt;/P&gt;&lt;P&gt;Sheet1 --Press -- Display Sheet1&lt;/P&gt;&lt;P&gt;Sheet2--Press - Display sheet2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert for issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 07:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213491#M67203</guid>
      <dc:creator>maneshkhottcpl</dc:creator>
      <dc:date>2011-02-16T07:47:42Z</dc:date>
    </item>
    <item>
      <title>Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213492#M67204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Manesh, I should use Container. Where is Container in your example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 12:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213492#M67204</guid>
      <dc:creator />
      <dc:date>2011-02-17T12:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213493#M67205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maxim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't tried this yet, but API 11 has this example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set ContainerObj = ActiveDocument.GetSheetObject("CT01")&lt;/P&gt;&lt;P&gt; set ContProp=ContainerObj.GetProperties &lt;/P&gt;&lt;P&gt; ActiveObject=ContProp.SingleObjectActiveIndex&lt;/P&gt;&lt;P&gt; msgbox("Active Object=" &amp;amp; ActiveObject &amp;amp; "&amp;nbsp; Id=" &amp;amp; ContProp.ContainedObjects.Item(ActiveObject).Id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and property SingleObjectActiveIndex is described as read-write. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you may try to assign to this property Id of one or another container object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 14:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213493#M67205</guid>
      <dc:creator />
      <dc:date>2012-01-20T14:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213494#M67206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did anyone get this working please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to activate an object within a container via a button.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 10:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213494#M67206</guid>
      <dc:creator />
      <dc:date>2012-08-10T10:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213495#M67207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just tried a solution for the very same purpose and it has worked properly. Please find the sample code below. You can write as many copies of the same subprocedure as you need, by changing the name of the sub and the value of the MV_ActiveIndex variable so that you can attach each sub to a button, enabling your macros to be run when clicked on the relevant buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;sub ContTabSelect0&lt;BR /&gt;&lt;BR /&gt;set MV_ContainerObj = ActiveDocument.GetSheetObject("CT13")&lt;BR /&gt;Set MV_ContProp = MV_ContainerObj.GetProperties &lt;BR /&gt;MV_ActiveIndex2 = MV_ContProp.SingleObjectActiveIndex&lt;BR /&gt;MV_ActiveIndex2 = 0&lt;BR /&gt;MV_ContProp.SingleObjectActiveIndex = MV_ActiveIndex2&lt;BR /&gt;MV_ContainerObj.SetProperties MV_ContProp&lt;BR /&gt;&lt;BR /&gt;End Sub &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2012 08:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213495#M67207</guid>
      <dc:creator>murozel76</dc:creator>
      <dc:date>2012-09-25T08:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213496#M67208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you ever get this to work on a button?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 20:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213496#M67208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-24T20:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213497#M67209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have a number of buttons each for activating a spesific tab in a container.&lt;/P&gt;&lt;P&gt;Just in the "actions" section of the button properties, I selected "run macro" and specified the macro name there.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 07:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213497#M67209</guid>
      <dc:creator>murozel76</dc:creator>
      <dc:date>2012-10-30T07:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213498#M67210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Add a Button to trigger the Macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;First you have to Set Variable to pass to the macro as it is not allowed to pass variables in the macro call.&amp;nbsp;&amp;nbsp; (vMCont and &lt;SPAN style="color: black;"&gt;vMTab)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;vMCont = container Object ID&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;vMTab = See Container&amp;nbsp; - General - Label for Selected Item&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;Run macro = SetTabInContainer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;Paste following code in to the macro editor &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 12.0pt; color: black;"&gt;Sub SetTabInContainer&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Set Container = ActiveDocument.Variables("vMCont")&lt;BR /&gt; Set Tab = ActiveDocument.Variables("vMTab")&lt;BR /&gt; Call InteranlSetTabInContainer(Container.GetContent.string,Tab.GetContent.string)&lt;BR /&gt; &lt;BR /&gt; end sub&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; Sub InteranlSetTabInContainer (Container, Cname)&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt; NewIndex = 0&lt;BR /&gt; &lt;BR /&gt; Set ContainerObj = ActiveDocument.GetSheetObject(Container)&lt;BR /&gt; set ContProp=ContainerObj.GetProperties &lt;BR /&gt; &lt;BR /&gt; for i = 0 to ContProp.ContainedObjects.Count - 1 &lt;BR /&gt; &lt;BR /&gt; if ContProp.ContainedObjects.Item(i).Text.v = Cname then&lt;BR /&gt; NewIndex = i&lt;BR /&gt; End IF&lt;BR /&gt; &lt;BR /&gt; next&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; ContProp.SingleObjectActiveIndex = NewIndex&lt;BR /&gt; ContainerObj.SetProperties ContProp&lt;BR /&gt; &lt;BR /&gt; end Sub&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 17:12:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/213498#M67210</guid>
      <dc:creator />
      <dc:date>2013-03-26T17:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select Tab in the Container using Macro</title>
      <link>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/1587018#M443278</link>
      <description>&lt;P&gt;This was an issue that I brought up to R&amp;amp;D a while ago. Those who are using certain versions QlikView will notice that these properties no longer produce the desired result. The API for getting the active object and changing the active object programmatically can be found in this article with examples: &lt;A href="https://support.qlik.com/articles/000070090" target="_blank"&gt;https://support.qlik.com/articles/000070090&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 08:13:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-Tab-in-the-Container-using-Macro/m-p/1587018#M443278</guid>
      <dc:creator>StevenJDH</dc:creator>
      <dc:date>2019-05-31T08:13:25Z</dc:date>
    </item>
  </channel>
</rss>

