<?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 Hiding Tab Sheets using text objects as buttons in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hiding-Tab-Sheets-using-text-objects-as-buttons/m-p/679466#M246374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been trying to get this to work for days now and am running out of patience. I downloaded the DynamicPages.qvw file and I thought I understood how it all works -- it does exactly what I want, which is to provide a set of buttons to hide or show one or more tab sheets in my document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a series of text objects which set a variable called vSheetGroup. Each button sets a variable letter from A to G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the CROSSTABLE just as the example does passing a SheetName and SheetAllowed variables as well as the OSUser, then initialize the table with a LOAD * INLINE which appears to be working, I can see all the values being set correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each tab page then has a condition variable set which uses the SheetName and the OSUser to hide or show the sheet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;SheetName={'Sheet 6'},OSUser={'$(vOSUser)'}&amp;gt;}if(index(vSheetGroup,'B') &amp;gt; 0,SheetAllowed, 0)) &amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference is I use different sheet names, but they are all just strings. Each page has an index value of A thru G, selecting Show All sets the vSheetGroup to ABCDEFG. The Sheet Security buttons set the variable vSheetSecurity to either 1 for on or 0 for off. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly I defined a variable OSUser as &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(vSheetSecurity = 1, OSUser(), '*')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But regardless of all this, clicking the buttons on my menu page does nothing (other than set the value of the vSheetGroup variable, which I can see in the Variable Overview)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must be missing something. I have all the same variables and condition variables, the only differences are the names of the sheets. How can I figure out what is going wrong? I also tried removing the OSUser column since I don't really need it but that made no difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jul 2014 15:42:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-15T15:42:41Z</dc:date>
    <item>
      <title>Hiding Tab Sheets using text objects as buttons</title>
      <link>https://community.qlik.com/t5/QlikView/Hiding-Tab-Sheets-using-text-objects-as-buttons/m-p/679466#M246374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been trying to get this to work for days now and am running out of patience. I downloaded the DynamicPages.qvw file and I thought I understood how it all works -- it does exactly what I want, which is to provide a set of buttons to hide or show one or more tab sheets in my document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a series of text objects which set a variable called vSheetGroup. Each button sets a variable letter from A to G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the CROSSTABLE just as the example does passing a SheetName and SheetAllowed variables as well as the OSUser, then initialize the table with a LOAD * INLINE which appears to be working, I can see all the values being set correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each tab page then has a condition variable set which uses the SheetName and the OSUser to hide or show the sheet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;SheetName={'Sheet 6'},OSUser={'$(vOSUser)'}&amp;gt;}if(index(vSheetGroup,'B') &amp;gt; 0,SheetAllowed, 0)) &amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only difference is I use different sheet names, but they are all just strings. Each page has an index value of A thru G, selecting Show All sets the vSheetGroup to ABCDEFG. The Sheet Security buttons set the variable vSheetSecurity to either 1 for on or 0 for off. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly I defined a variable OSUser as &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =if(vSheetSecurity = 1, OSUser(), '*')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But regardless of all this, clicking the buttons on my menu page does nothing (other than set the value of the vSheetGroup variable, which I can see in the Variable Overview)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must be missing something. I have all the same variables and condition variables, the only differences are the names of the sheets. How can I figure out what is going wrong? I also tried removing the OSUser column since I don't really need it but that made no difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jul 2014 15:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hiding-Tab-Sheets-using-text-objects-as-buttons/m-p/679466#M246374</guid>
      <dc:creator />
      <dc:date>2014-07-15T15:42:41Z</dc:date>
    </item>
  </channel>
</rss>

