<?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: Create a menu that can be hidden in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-menu-that-can-be-hidden/m-p/361992#M134563</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;/P&gt;&lt;P&gt;The easiest thing would be to use a variable for the object/sheet you want hidden combined with a show condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vHidden = '1'; //Hidden&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then set the show condition for the container in your case to be if(vHidden='0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And finally have the button toggle the value between 1 and 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hampus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2012 09:03:30 GMT</pubDate>
    <dc:creator>hps</dc:creator>
    <dc:date>2012-06-21T09:03:30Z</dc:date>
    <item>
      <title>Create a menu that can be hidden</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-menu-that-can-be-hidden/m-p/361991#M134562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I got a qvw document in which I need to create a menu that can be hidden&lt;/P&gt;&lt;P&gt;I'm trying to add a container with grid style and add to it sheet objects representing menu items&lt;/P&gt;&lt;P&gt;I added a button so as to hide this container menu using the following macro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set obj=ActiveDocument.GetSheetObject("CT06")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set sh = ActiveDocument.ActiveSheet &lt;/P&gt;&lt;P&gt;dim dummy(0)&amp;nbsp; 'dummy array indicates all parts of frame to be set&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set fr = obj.GetFrameDef&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set pos = fr.Rect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #ff6600;"&gt; pos.Width = 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pos.Height = pos.Height&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; obj.SetFrame fr,true,dummy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however when I click the button I get an error on the red line above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 08:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-menu-that-can-be-hidden/m-p/361991#M134562</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2012-06-21T08:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a menu that can be hidden</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-menu-that-can-be-hidden/m-p/361992#M134563</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;/P&gt;&lt;P&gt;The easiest thing would be to use a variable for the object/sheet you want hidden combined with a show condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vHidden = '1'; //Hidden&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then set the show condition for the container in your case to be if(vHidden='0')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And finally have the button toggle the value between 1 and 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hampus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 09:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-menu-that-can-be-hidden/m-p/361992#M134563</guid>
      <dc:creator>hps</dc:creator>
      <dc:date>2012-06-21T09:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create a menu that can be hidden</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-menu-that-can-be-hidden/m-p/361993#M134564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think that i will be easyer to not use macro here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i usually use simple click action:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the click action activates a variable that get '1' or '0' - somthing like " if (&amp;lt;variable name&amp;gt; = 1 ,0,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;than for your container that holds the menu, in properties - layout, switch the show to conditional and set it to &amp;lt;variable name&amp;gt;=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result will be that with a simple click you can make the menu to apear or disapear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2012 09:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-menu-that-can-be-hidden/m-p/361993#M134564</guid>
      <dc:creator />
      <dc:date>2012-06-21T09:34:56Z</dc:date>
    </item>
  </channel>
</rss>

