<?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 Get Active object in a Container in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-Active-object-in-a-Container/m-p/751114#M267812</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;&lt;/P&gt;&lt;P&gt;I need to know the ID and/or the Caption of the active object in a container. I have tryed this API Guide 11 code:&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;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;ActiveObject=ContProp.SingleObjectActiveIndex&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;msgbox("Active Object=" &amp;amp; ActiveObject)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Msgbox("&amp;nbsp; Id=" &amp;amp; ContProp.ContainedObjects.Item(ActiveObject).Id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see the order of the active object (0,1,...), but "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;ContainedObjects.Item(ActiveObject).Id" is not working. Im using QV11.20 SR9. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen some similar not answered posts with this question. It's a bug? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Feb 2015 12:37:43 GMT</pubDate>
    <dc:creator>sebastiandperei</dc:creator>
    <dc:date>2015-02-05T12:37:43Z</dc:date>
    <item>
      <title>Get Active object in a Container</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Active-object-in-a-Container/m-p/751114#M267812</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;&lt;/P&gt;&lt;P&gt;I need to know the ID and/or the Caption of the active object in a container. I have tryed this API Guide 11 code:&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;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;ActiveObject=ContProp.SingleObjectActiveIndex&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;msgbox("Active Object=" &amp;amp; ActiveObject)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Msgbox("&amp;nbsp; Id=" &amp;amp; ContProp.ContainedObjects.Item(ActiveObject).Id)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can see the order of the active object (0,1,...), but "&lt;SPAN style="font-size: 13.3333330154419px;"&gt;ContainedObjects.Item(ActiveObject).Id" is not working. Im using QV11.20 SR9. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen some similar not answered posts with this question. It's a bug? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 12:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Active-object-in-a-Container/m-p/751114#M267812</guid>
      <dc:creator>sebastiandperei</dc:creator>
      <dc:date>2015-02-05T12:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get Active object in a Container</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Active-object-in-a-Container/m-p/751115#M267813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you used names for your objects inside from the container then you get with the following code these label:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set CTObj = ActiveDocument.GetSheetObject("CT02")&lt;BR /&gt;set CTProp = CTObj.GetProperties&amp;nbsp;&amp;nbsp; &lt;BR /&gt;msgbox CTProp.ContainedObjects.Item(CTProp.SingleObjectActiveIndex).Text.v&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If these name contained the object-id like "Bar-Chart Sales - CH01" you could read this per string-functions and used it for further purposes (not really nice but a workaround).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Feb 2015 13:42:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Active-object-in-a-Container/m-p/751115#M267813</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-02-05T13:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get Active object in a Container</title>
      <link>https://community.qlik.com/t5/QlikView/Get-Active-object-in-a-Container/m-p/1587020#M443279</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" rel="noopener"&gt;https://support.qlik.com/articles/000070090&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2019 07:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-Active-object-in-a-Container/m-p/1587020#M443279</guid>
      <dc:creator>StevenJDH</dc:creator>
      <dc:date>2019-05-31T07:54:47Z</dc:date>
    </item>
  </channel>
</rss>

