<?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 Macro to Minimize/Maximize in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-Minimize-Maximize/m-p/234018#M85508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rakesh,&lt;/P&gt;&lt;P&gt;Thanks, It works like charm!&lt;/P&gt;&lt;P&gt;If not a pain, Can you tell me why the methods from the API were not working and this was working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2009 09:17:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-06T09:17:28Z</dc:date>
    <item>
      <title>Macro to Minimize/Maximize</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Minimize-Maximize/m-p/234016#M85506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a button on my sheet that I would like to maximize or minimize based on the selection.&lt;/P&gt;&lt;P&gt;For some reason, it doesn't work. Here is the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub HideApply&lt;/P&gt;&lt;P&gt;set buttonApply = ActiveDocument.GetSheetObject("BU02")&lt;/P&gt;&lt;P&gt;buttonApply.Minimize&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;I even tried having objects on top of another to replicate the hide functionality using the SetLayer method of the button. but that doesnt work either. It comes back saying "Object doesn't support this property or method: 'buttonApply.SetLayer'".&lt;/P&gt;&lt;P&gt;Can anyone help. It looks like these methods are supported according to the API guide.&lt;/P&gt;&lt;P&gt;I am using QV 8.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 08:18:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Minimize-Maximize/m-p/234016#M85506</guid>
      <dc:creator />
      <dc:date>2009-11-06T08:18:18Z</dc:date>
    </item>
    <item>
      <title>Macro to Minimize/Maximize</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Minimize-Maximize/m-p/234017#M85507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try these macros to hide/unhide the button:&lt;/P&gt;&lt;P&gt;Sub HideIt&lt;BR /&gt; set BU = ActiveDocument.GetSheetObject("BU01")&lt;BR /&gt; set prop=BU.GetProperties&lt;BR /&gt; prop.Frame.Show.Always = false&lt;BR /&gt; prop.Frame.Show.Expression.v = "1 = 2"&lt;BR /&gt; BU.SetProperties prop&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Sub UnHideIt&lt;BR /&gt; set BU = ActiveDocument.GetSheetObject("BU01")&lt;BR /&gt; set prop=BU.GetProperties&lt;BR /&gt; prop.Frame.Show.Always = true&lt;BR /&gt; prop.Frame.Show.Expression.v = ""&lt;BR /&gt; BU.SetProperties prop&lt;BR /&gt;End Sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 08:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Minimize-Maximize/m-p/234017#M85507</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2009-11-06T08:59:49Z</dc:date>
    </item>
    <item>
      <title>Macro to Minimize/Maximize</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-Minimize-Maximize/m-p/234018#M85508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rakesh,&lt;/P&gt;&lt;P&gt;Thanks, It works like charm!&lt;/P&gt;&lt;P&gt;If not a pain, Can you tell me why the methods from the API were not working and this was working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2009 09:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-Minimize-Maximize/m-p/234018#M85508</guid>
      <dc:creator />
      <dc:date>2009-11-06T09:17:28Z</dc:date>
    </item>
  </channel>
</rss>

