<?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: Show and Hide Sheets based on Section Access in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1736793#M722719</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using section access, you need to include ALL the users that needs to use it.&lt;/P&gt;&lt;P&gt;You can handle show/hide sheets quite easy, when adding additional data to the script as follows&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;SECTION ACCESS;&lt;/P&gt;&lt;P&gt;Users:&lt;BR /&gt;LOAD * INLINE&lt;BR /&gt;[ACCESS,ID,ShowSheet&lt;BR /&gt;ADMIN,197,1&lt;BR /&gt;ADMIN,464,1&lt;BR /&gt;ADMIN,387,1&lt;BR /&gt;ADMIN,999,1&lt;BR /&gt;USER,XXX,0&lt;BR /&gt;];&lt;BR /&gt;Section Application;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ShowSheet&lt;BR /&gt;1&lt;BR /&gt;0&lt;BR /&gt;]&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;What I have done, is add another column with the value 1 inside, now when a user is connecting to the app, if he is matched with that row, he will have 1 as value, if not he will have 0.&lt;/P&gt;&lt;P&gt;Now inside the sheet conditional, you can use the following -&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Sum(ShowSheet) - It's suppose to return one to those who have access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Eliran.&lt;/P&gt;</description>
    <pubDate>Tue, 18 Aug 2020 15:12:30 GMT</pubDate>
    <dc:creator>eliran</dc:creator>
    <dc:date>2020-08-18T15:12:30Z</dc:date>
    <item>
      <title>Show and Hide Sheets based on Section Access</title>
      <link>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1736765#M722717</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How can I show one sheet for everyone irrespective of their Section Access Presence (They are not in the Section Access script at all) and hide another sheet for such users?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SECTION ACCESS;&lt;/P&gt;&lt;P&gt;Users:&lt;BR /&gt;LOAD * INLINE&lt;BR /&gt;[ACCESS,ID&lt;BR /&gt;ADMIN,197&lt;BR /&gt;ADMIN,464&lt;BR /&gt;ADMIN,387&lt;BR /&gt;ADMIN,999&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;All the IDs listed in Section Access should see both the Sheets but Users who are not in Section Access should only see Sheet1 but not Sheet2.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:07:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1736765#M722717</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2024-11-16T00:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Show and Hide Sheets based on Section Access</title>
      <link>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1736790#M722718</link>
      <description>&lt;P&gt;In our case, we have an application that has both financial data and salary data.&amp;nbsp; All users should see the financial data, but only users that manage employees should see the salary data.&amp;nbsp; The financial and salary data are in 2 different tables.&amp;nbsp; Access to employee data is based on the user's department in the section access.&lt;/P&gt;&lt;P&gt;To allow all users access to the application and see the finance data, I created a dummy department and concatenated all users the section access table with the dummy department.&amp;nbsp; This allows all users access to the application, but they cannot see salary data unless they have a legitimate department in the section access table.&lt;/P&gt;&lt;P&gt;I hide the salary sheet by adding the following expression to the "Show Sheet" conditional expression.&lt;/P&gt;&lt;P&gt;If (count(employee) &amp;gt; 0,1,0)&lt;/P&gt;&lt;P&gt;Only users that have a legitimate department in the section access table will have a count greater than 0.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 15:05:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1736790#M722718</guid>
      <dc:creator>jwjackso</dc:creator>
      <dc:date>2020-08-18T15:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Show and Hide Sheets based on Section Access</title>
      <link>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1736793#M722719</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using section access, you need to include ALL the users that needs to use it.&lt;/P&gt;&lt;P&gt;You can handle show/hide sheets quite easy, when adding additional data to the script as follows&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;SECTION ACCESS;&lt;/P&gt;&lt;P&gt;Users:&lt;BR /&gt;LOAD * INLINE&lt;BR /&gt;[ACCESS,ID,ShowSheet&lt;BR /&gt;ADMIN,197,1&lt;BR /&gt;ADMIN,464,1&lt;BR /&gt;ADMIN,387,1&lt;BR /&gt;ADMIN,999,1&lt;BR /&gt;USER,XXX,0&lt;BR /&gt;];&lt;BR /&gt;Section Application;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ShowSheet&lt;BR /&gt;1&lt;BR /&gt;0&lt;BR /&gt;]&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;What I have done, is add another column with the value 1 inside, now when a user is connecting to the app, if he is matched with that row, he will have 1 as value, if not he will have 0.&lt;/P&gt;&lt;P&gt;Now inside the sheet conditional, you can use the following -&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Sum(ShowSheet) - It's suppose to return one to those who have access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Eliran.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 15:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1736793#M722719</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2020-08-18T15:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Show and Hide Sheets based on Section Access</title>
      <link>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1736805#M722720</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/35006"&gt;@eliran&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5930"&gt;@jwjackso&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you. I thought about this approach as well. But the caveat here is, I still need to add all the users in Section Access table and there are thousands. I can easily identify users who should have access to both Sheet1 and Sheet2 but there will be thousands who should have access just to Sheet1 but not Sheet2&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 15:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1736805#M722720</guid>
      <dc:creator>qlikwiz123</dc:creator>
      <dc:date>2020-08-18T15:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Show and Hide Sheets based on Section Access</title>
      <link>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1736970#M722721</link>
      <description>&lt;P&gt;Well, when working with section access, you can't avoid adding all the users.&lt;/P&gt;&lt;P&gt;What you can do, if you got access to all those users, is load them with the value 1 in section access field, and then concatenate the rest with 0 in the section access field as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;Section_Temp:&lt;BR /&gt;load UserID as USERID,&lt;BR /&gt;'ADMIN' as ACCESS,&lt;BR /&gt;1 as&amp;nbsp;ShowSheet&lt;BR /&gt;from allusers.qvd/dbo.allusers/allusers.xlsx;&lt;BR /&gt;concatenate&lt;BR /&gt;LOAD * INLINE&lt;BR /&gt;[ACCESS,ID,ShowSheet&lt;BR /&gt;USER,XXX,0&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;SECTION ACCESS;&lt;/P&gt;&lt;P&gt;load&lt;BR /&gt;USERID,&lt;BR /&gt;ACCESS,&lt;BR /&gt;ShowSheet&lt;BR /&gt;resident&amp;nbsp;Section_Temp;&lt;/P&gt;&lt;P&gt;drop table&amp;nbsp;Section_Temp;&lt;BR /&gt;&lt;BR /&gt;Section Application;&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ShowSheet&lt;BR /&gt;1&lt;BR /&gt;0&lt;BR /&gt;]&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 07:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1736970#M722721</guid>
      <dc:creator>eliran</dc:creator>
      <dc:date>2020-08-19T07:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Show and Hide Sheets based on Section Access</title>
      <link>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1740701#M722722</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/9788"&gt;@qlikwiz123&lt;/a&gt;&amp;nbsp;You do realize you can use Security Groups if you are using NTNAME system field in Section Access?&amp;nbsp; I would recommend you review the following posts, they may be helpful too:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Section-Access/ba-p/1465766" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Section-Access/ba-p/1465766&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Security.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Security.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The only other way to do this would be to split the application into two different apps, one for the Section Access folks and the other that would not have Section Access at all.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 14:47:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/1740701#M722722</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-09-02T14:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: Show and Hide Sheets based on Section Access</title>
      <link>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/2094973#M1224227</link>
      <description>&lt;P&gt;Hiya,&lt;/P&gt;
&lt;P&gt;This is the key idea and worked a treat&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Section Application;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ShowSheet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This can be tailored for more than 2 groups and then use something along the lines of&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=if(min(ShowSheet) = 2, 1, 0)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 15:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-and-Hide-Sheets-based-on-Section-Access/m-p/2094973#M1224227</guid>
      <dc:creator>colinodonnel</dc:creator>
      <dc:date>2023-07-18T15:33:13Z</dc:date>
    </item>
  </channel>
</rss>

