<?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: Container Objects in QlikView Macros in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992916#M338165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that works, I've tested that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that most often I tend to add objects to a container and then delete them, so they don't exist as "external" objects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Oct 2015 16:50:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-05T16:50:17Z</dc:date>
    <item>
      <title>Container Objects in QlikView Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992910#M338159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running QV 11.2 and trying to run thru the example for "ContainedObjects" / "IContainerProperties":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set ContainerObj = ActiveDocument.Sheets("Main").CreateContainer&lt;/P&gt;&lt;P&gt;set ContProp=ContainerObj.GetProperties&lt;/P&gt;&lt;P&gt; ContProp.ContainedObjects.Add &lt;/P&gt;&lt;P&gt; ContProp.SingleObjectMode=1&lt;/P&gt;&lt;P&gt; ContProp.SingleObjectStyle=1&lt;/P&gt;&lt;P&gt; ContProp.ShowObjectTypeIcons=true&lt;/P&gt;&lt;P&gt; ContProp.ContainedObjects.Add &lt;/P&gt;&lt;P&gt; ContProp.ContainedObjects.Item(0).Id = "Document\CH03"&lt;/P&gt;&lt;P&gt; ContProp.ContainedObjects.Item(0).Text.v = "Bar"&lt;/P&gt;&lt;P&gt; ContProp.ContainedObjects.Add&lt;/P&gt;&lt;P&gt; ContProp.ContainedObjects.Item(1).Id = "Document\CH01"&lt;/P&gt;&lt;P&gt; ContProp.ContainedObjects.Item(1).Text.v = "Mekko"&lt;/P&gt;&lt;P&gt;ContainerObj.SetProperties ContProp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I get an error that "Id" is not a supported property. See attachment for clarification.&lt;IMG alt="Capture07.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100922_Capture07.PNG" style="height: 413px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a known problem? Is there any solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 08:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992910#M338159</guid>
      <dc:creator />
      <dc:date>2015-10-05T08:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Container Objects in QlikView Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992911#M338160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After some more research, I found that you could write this short script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Set&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; MyApp&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;CreateObject&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #808080;"&gt;"QlikTech.QlikView"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In a tool such as vbsedit to get the actual information about the contents of the API. Pretty useful! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems like the property was changed to Id_OBSOLETE at some point. This sort of indicates that it should not be used. But changing the example to that, the example actually works. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So why has it been changed? And what is an alternative method of getting the Id's of objects in a Container?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture08.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/100943_Capture08.PNG" style="height: 492px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 10:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992911#M338160</guid>
      <dc:creator />
      <dc:date>2015-10-05T10:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Container Objects in QlikView Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992912#M338161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this helpful?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-10-05 #3.PNG" class="jive-image image-1" src="/legacyfs/online/100974_2015-10-05 #3.PNG" style="height: 150px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 13:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992912#M338161</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-05T13:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Container Objects in QlikView Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992913#M338162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;This modified code works&lt;/STRONG&gt;&lt;/EM&gt;. The Id property is obsolete and the Def property with the sub property of ObjectID is the replacement property to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Set ContainerObj = ActiveDocument.Sheets("Main").CreateContainer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Set ContProp=ContainerObj.GetProperties&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ContProp.ContainedObjects.Add&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ContProp.SingleObjectMode=1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ContProp.SingleObjectStyle=1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ContProp.ShowObjectTypeIcons=true&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ContProp.ContainedObjects.Add&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ContProp.ContainedObjects.Item(0)&lt;STRONG&gt;.Def.ObjectId&lt;/STRONG&gt; = "Document\CH01"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ContProp.ContainedObjects.Item(0).Text.v = "Bar"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ContProp.ContainedObjects.Add&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ContProp.ContainedObjects.Item(1)&lt;STRONG&gt;.Def.ObjectId&lt;/STRONG&gt; = "Document\CH02"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ContProp.ContainedObjects.Item(1).Text.v = "Mekko"&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;ContainerObj.SetProperties ContProp&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 13:52:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992913#M338162</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-05T13:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Container Objects in QlikView Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992914#M338163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, thanks! How could I miss the Def property? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I was hoping to do with this info was to get a handle of the Container objects so that I could change some properties on them (like Caption text, background color etc). But that does not seem possible? I can't seem to find a "getobject" method for those objects...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992914#M338163</guid>
      <dc:creator />
      <dc:date>2015-10-05T16:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Container Objects in QlikView Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992915#M338164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;These container objects are "linked" so most of the properties should be changed if you change them ... You just do a GetObject on the "external" objects that you link into the container I would think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:47:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992915#M338164</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-10-05T16:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Container Objects in QlikView Macros</title>
      <link>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992916#M338165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that works, I've tested that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that most often I tend to add objects to a container and then delete them, so they don't exist as "external" objects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Container-Objects-in-QlikView-Macros/m-p/992916#M338165</guid>
      <dc:creator />
      <dc:date>2015-10-05T16:50:17Z</dc:date>
    </item>
  </channel>
</rss>

