<?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 set a default object to a container ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376864#M573526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Different users come to a same container, they select different charts, then they leave and save. Next time when other user open the document and come to the container, charts are different. What I want is every time when a document is opened, all the containers will show pre-defined charts. Even users do some changes and leave and save.&amp;nbsp; &lt;/P&gt;&lt;P&gt; Anyone know how to do that using Macro please? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2012 03:28:27 GMT</pubDate>
    <dc:creator>NZFei</dc:creator>
    <dc:date>2012-08-10T03:28:27Z</dc:date>
    <item>
      <title>How to set a default object to a container ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376862#M573524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Say there are several objects / reports in one container. Every time when opening this sheet, I want the container to show a fixed object. How can I achieve that please? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 02:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376862#M573524</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2012-08-10T02:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a default object to a container ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376863#M573525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, in container object whichever u selected the recent one chart or something else , will show up once u open the container object.&lt;/P&gt;&lt;P&gt;if u want to keep anything default then make that chart selected ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 03:19:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376863#M573525</guid>
      <dc:creator>shree909</dc:creator>
      <dc:date>2012-08-10T03:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a default object to a container ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376864#M573526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Different users come to a same container, they select different charts, then they leave and save. Next time when other user open the document and come to the container, charts are different. What I want is every time when a document is opened, all the containers will show pre-defined charts. Even users do some changes and leave and save.&amp;nbsp; &lt;/P&gt;&lt;P&gt; Anyone know how to do that using Macro please? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 03:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376864#M573526</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2012-08-10T03:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a default object to a container ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376865#M573527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Someone has created a Idea &lt;A _jive_internal="true" href="https://community.qlik.com/community.qlik.com/ideas/2437"&gt;http://community.qlik.com/ideas/2437&lt;/A&gt; but is there any work around to achieve it now? How do to it in trigger?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found if&amp;nbsp; you click the link above, it goes to unexpected error page. If you copy and paste it to IE, then it goes to correct idea page.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 04:10:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376865#M573527</guid>
      <dc:creator>NZFei</dc:creator>
      <dc:date>2012-08-10T04:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a default object to a container ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376866#M573528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For setting the default index of the container when opening the document, create a new action as follows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In the main menu, go to Settings\Document Properties &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the Document properties window, go to the Triggers tab, click on the OnOpen option in the Document Event Triggers window and click on the Edit Action button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. In the Actions window, add a new External\Run Macro action and then enter the macro name SetContainerIndexDefault&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this macro for setting the default index. Note that you must replace "CT06" with the Object Id chosen to be the default in your container. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub SetContainerIndexDefault&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set ContainerObj= ActiveDocument.GetSheetObject("CT06") &lt;/P&gt;&lt;P&gt;Set ContainerProp=ContainerObj.GetProperties&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;ActiveChartIndex=0&lt;/P&gt;&lt;P&gt;ContainerProp.SingleObjectActiveIndex = ActiveChartIndex&lt;/P&gt;&lt;P&gt;ContainerObj.SetProperties ContainerProp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Default_index_container.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/59009_Default_index_container.PNG.png" style="width: 620px; height: 202px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 19:39:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376866#M573528</guid>
      <dc:creator />
      <dc:date>2014-05-16T19:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to set a default object to a container ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376867#M573529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the hint.&amp;nbsp;&amp;nbsp; I was able to add a little to your code and loop through all objects and set all containers to default to the first object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB SetContainerDefault&lt;/P&gt;&lt;P&gt;'This Subroutine sets all the Container Objects to make the first object in the container active.&lt;/P&gt;&lt;P&gt;'This will run on the on open command and on close command.&lt;/P&gt;&lt;P&gt;'Assumes that all Container Object Ids start with a CT&lt;/P&gt;&lt;P&gt;Objects = ActiveDocument.ActiveSheet.GetSheetObjects&lt;/P&gt;&lt;P&gt;For i = lBound(Objects) To uBound(Objects)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF LEFT(Objects(i).GetObjectId,11) = "Document\CT" THEN&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET ContainerProp = Objects(i).GetProperties&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveChartIndex = 0&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ContainerProp.SingleObjectActiveIndex = ActiveChartIndex &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Objects(i).SetProperties ContainerProp&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END IF&lt;/P&gt;&lt;P&gt;next&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 23:17:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376867#M573529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-04T23:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to set a default object to a container ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376868#M573530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent Good evolution Jerry!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 15:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-a-default-object-to-a-container/m-p/376868#M573530</guid>
      <dc:creator />
      <dc:date>2015-05-27T15:07:28Z</dc:date>
    </item>
  </channel>
</rss>

