<?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 Move object to top with a button and layers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Move-object-to-top-with-a-button-and-layers/m-p/371205#M138071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to add multiple charts to a single page but would like them to all be the exact same size and in the exact same location.&amp;nbsp; I would then like a button or multiple buttons that bring the chart object to the top when the button is clicked.&amp;nbsp; Essentially like you would use a z-index in CSS.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any guideance would be great.&amp;nbsp; I've searched and I'm coming up with nothing.&amp;nbsp; Mabye I'm not searching on the right terms.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2012 20:44:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-04-26T20:44:46Z</dc:date>
    <item>
      <title>Move object to top with a button and layers</title>
      <link>https://community.qlik.com/t5/QlikView/Move-object-to-top-with-a-button-and-layers/m-p/371205#M138071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking to add multiple charts to a single page but would like them to all be the exact same size and in the exact same location.&amp;nbsp; I would then like a button or multiple buttons that bring the chart object to the top when the button is clicked.&amp;nbsp; Essentially like you would use a z-index in CSS.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any guideance would be great.&amp;nbsp; I've searched and I'm coming up with nothing.&amp;nbsp; Mabye I'm not searching on the right terms.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 20:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Move-object-to-top-with-a-button-and-layers/m-p/371205#M138071</guid>
      <dc:creator />
      <dc:date>2012-04-26T20:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Move object to top with a button and layers</title>
      <link>https://community.qlik.com/t5/QlikView/Move-object-to-top-with-a-button-and-layers/m-p/371206#M138072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is not currently an action that supports changing the X and Y values for the location of an object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is, however, a function for it in the API called SetRect, but based on what it does I am not sure it would work in AJAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;rem ** move all objects on active sheet 20 pixels down and 15 right **&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;set sh = ActiveDocument.ActiveSheet &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;for i = 0 to sh.NoOfSheetObjects-1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set obj = sh.SheetObjects(i)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = obj.GetRect&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos.Top = pos.Top + 20&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos.Left = pos.Left + 15&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.SetRect pos&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also accomplish it using multiple copies of the chart objects that are conditionally visible based on the behavior of your buttons.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 00:27:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Move-object-to-top-with-a-button-and-layers/m-p/371206#M138072</guid>
      <dc:creator>msteedle</dc:creator>
      <dc:date>2012-04-27T00:27:15Z</dc:date>
    </item>
    <item>
      <title>Move object to top with a button and layers</title>
      <link>https://community.qlik.com/t5/QlikView/Move-object-to-top-with-a-button-and-layers/m-p/371207#M138073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd recommend using Hide/Show conditions over the idea of keeping all the objects "visible" and playing with the layers via macros, for the following reasons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. All the objects that are visible, will get calculated with every selections and virtually with every click, disregarding the layers. You are adding a lot of performance overhead for no benefit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can arrange your show/hide conditions to be driven by a variable, and the buttons could drive changing the value of the variable using actions, which is MUCH better than using VBScript macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oleg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 01:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Move-object-to-top-with-a-button-and-layers/m-p/371207#M138073</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2012-04-27T01:41:10Z</dc:date>
    </item>
  </channel>
</rss>

