<?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: Change the position of the objects dynamically. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308114#M406964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script only moves all the objects in the sheet by 20/15. That's it. But I need only the selected objects to align in an order. Like I should read the values of the ending of the object and align next object based on that value. Maybe we can achieve this using macro. But am very poor in VBScript and javascript.:( So expecting some help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Apr 2017 04:50:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-13T04:50:19Z</dc:date>
    <item>
      <title>Change the position of the objects dynamically.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308112#M406962</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;Say I have a field test with values a,b,c...&lt;/P&gt;&lt;P&gt;I&amp;nbsp; have objects created with the layout condition based on the selection of the value of the list object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, when I select random values, the objects will not be aligned. But is there a way to align the visible objects in a specific order??&lt;/P&gt;&lt;P&gt;Like in the image&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" height="259" src="https://community.qlik.com/legacyfs/online/159905_Capture.PNG" style="height: 259.165px; width: 221px;" width="221" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="Capture.PNG" class="jive-image image-1" height="260" src="https://community.qlik.com/legacyfs/online/159883_Capture.PNG" style="height: 260px; width: 298px;" width="298" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 15:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308112#M406962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-12T15:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Change the position of the objects dynamically.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308113#M406963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1 option:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUB TOP_LEFT&lt;/P&gt;&lt;P&gt;set sh = ActiveDocument.ActiveSheet&lt;/P&gt;&lt;P&gt;for i = 0 to sh.NoOfSheetObjects-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set obj = sh.SheetObjects(i)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = obj.GetRect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos.Top = pos.Top + 20&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos.Left = pos.Left + 15&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.SetRect pos&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>Wed, 12 Apr 2017 15:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308113#M406963</guid>
      <dc:creator>el_aprendiz111</dc:creator>
      <dc:date>2017-04-12T15:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change the position of the objects dynamically.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308114#M406964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script only moves all the objects in the sheet by 20/15. That's it. But I need only the selected objects to align in an order. Like I should read the values of the ending of the object and align next object based on that value. Maybe we can achieve this using macro. But am very poor in VBScript and javascript.:( So expecting some help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Apr 2017 04:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308114#M406964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-13T04:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change the position of the objects dynamically.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308115#M406965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="macro_move_txt.gif" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/160152_macro_move_txt.gif" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2017 13:39:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308115#M406965</guid>
      <dc:creator>el_aprendiz111</dc:creator>
      <dc:date>2017-04-15T13:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Change the position of the objects dynamically.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308116#M406966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Fer, that definetly helps as a base to write some complex functionality. Can you please paste here the script??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2017 14:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308116#M406966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-15T14:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Change the position of the objects dynamically.</title>
      <link>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308117#M406967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;FUNCTION&amp;nbsp; pox(obj,x,y)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set obj = ActiveDocument.GetSheetObject(obj)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos = obj.GetRect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos.Top =y&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos.Left =x&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.SetRect pos&lt;/P&gt;&lt;P&gt;END FUNCTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub&amp;nbsp; move_obj&lt;/P&gt;&lt;P&gt; SET val=ActiveDocument.Fields("Field").GetPossibleValues(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; ValueToSelect = val.Item(0).Text&lt;/P&gt;&lt;P&gt;select case ValueToSelect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case "a"&lt;/P&gt;&lt;P&gt;call pox("TX01",339,47)&lt;/P&gt;&lt;P&gt;call pox("TX02",488,196)&lt;/P&gt;&lt;P&gt;call pox("TX03",636,349)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case "b"&lt;/P&gt;&lt;P&gt;call pox("TX01",333,349)&lt;/P&gt;&lt;P&gt;call pox("TX02",488,196)&lt;/P&gt;&lt;P&gt;call pox("TX03",644,43)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case "c"&lt;/P&gt;&lt;P&gt;call pox("TX01",330,196)&lt;/P&gt;&lt;P&gt;call pox("TX02",488,196)&lt;/P&gt;&lt;P&gt;call pox("TX03",649,199)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end select&lt;/P&gt;&lt;P&gt;END sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2017 14:39:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Change-the-position-of-the-objects-dynamically/m-p/1308117#M406967</guid>
      <dc:creator>el_aprendiz111</dc:creator>
      <dc:date>2017-04-15T14:39:12Z</dc:date>
    </item>
  </channel>
</rss>

