<?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 qlikview macro : how to display specific object in an empty container in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625464#M1112382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to macros.&lt;/P&gt;&lt;P&gt;I am exploring macros to show a tablebox ( i know the object id ) into a new empty container by just clicking a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 17:50:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-24T17:50:44Z</dc:date>
    <item>
      <title>qlikview macro : how to display specific object in an empty container</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625464#M1112382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new to macros.&lt;/P&gt;&lt;P&gt;I am exploring macros to show a tablebox ( i know the object id ) into a new empty container by just clicking a button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:50:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625464#M1112382</guid>
      <dc:creator />
      <dc:date>2014-02-24T17:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview macro : how to display specific object in an empty container</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625465#M1112383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Parth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure you need a macro?&amp;nbsp; Create a container, add objects you need, including the table box.&amp;nbsp; Container has it's "natural" buttons to show the object.&amp;nbsp; If you want to have an "Empty" container, add a text box with no text (or some help text) and caption "Empty".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 18:27:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625465#M1112383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-24T18:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview macro : how to display specific object in an empty container</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625466#M1112385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a macro for that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sub Container&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set Obj = ActiveDocument.Sheets("Main").CreateContainer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'or Set Obj = ActiveDocument.GetSheetObject("CT01")&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set Prop = Obj.GetProperties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prop.ContainedObjects.Add&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prop.ContainedObjects.Item(0).Def.ObjectId= "Document\TB01"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Obj.SetProperties Prop&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Sub&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To go along with what &lt;A href="https://community.qlik.com/qlik-users/3931"&gt;Michael Solomovich&lt;/A&gt; says, I would only use a macro as a last resort. If there is a way without macro, then use that way instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 18:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625466#M1112385</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-24T18:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview macro : how to display specific object in an empty container</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625467#M1112386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael. Sorry I am really new to QlikVIew, so I didnt know about this feature.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625467#M1112386</guid>
      <dc:creator />
      <dc:date>2014-02-24T19:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview macro : how to display specific object in an empty container</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625468#M1112388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome. Thank you so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625468#M1112388</guid>
      <dc:creator />
      <dc:date>2014-02-24T19:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview macro : how to display specific object in an empty container</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625469#M1112389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Similarly, is there a way to remove an object ? &lt;BR /&gt;Where do I get API for viewing all the methods?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:36:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625469#M1112389</guid>
      <dc:creator />
      <dc:date>2014-02-24T19:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Re: qlikview macro : how to display specific object in an empty container</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625470#M1112390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ActiveDocument.GetSheetObject("TX01").Close&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the API Guide qvw which will be helpful when writing macros. It takes some getting used to though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 19:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625470#M1112390</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-24T19:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview macro : how to display specific object in an empty container</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625471#M1112392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks..!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to remove an object from container (which still keeps the object in a sheet).&lt;/P&gt;&lt;P&gt;Set Obj = ActiveDocument.GetSheetObject("CT01")&lt;/P&gt;&lt;P&gt;Set Prop = Obj.GetProperties&lt;/P&gt;&lt;P&gt;if Prop.ContainedObjects.Count &amp;lt;&amp;gt; 0 Then&lt;/P&gt;&lt;P&gt;Prop.ContainedObjects.Item(0).Remove&lt;/P&gt;&lt;P&gt;Obj.SetProperties Prop&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I does not seem to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 20:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625471#M1112392</guid>
      <dc:creator />
      <dc:date>2014-02-24T20:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview macro : how to display specific object in an empty container</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625472#M1112393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Set Obj = ActiveDocument.GetSheetObject("CT01")&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Set Prop = Obj.GetProperties&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if Prop.ContainedObjects.Count &amp;lt;&amp;gt; 0 Then&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Prop.ContainedObjects.RemoveAt(0)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Obj.SetProperties Prop&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 20:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625472#M1112393</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-24T20:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: qlikview macro : how to display specific object in an empty container</title>
      <link>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625473#M1112394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome. It worked. Thank you so much.. I guess I have to get used to APIguide.qvw. It was a great start so far. &lt;BR /&gt;Thanks again..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 20:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/qlikview-macro-how-to-display-specific-object-in-an-empty/m-p/625473#M1112394</guid>
      <dc:creator />
      <dc:date>2014-02-24T20:37:16Z</dc:date>
    </item>
  </channel>
</rss>

