<?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 hide the sheets according to the logged in USER??? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181425#M47459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucia,&lt;/P&gt;&lt;P&gt;I am giving the condition same as you said, but when i am opening that i am not getting any data, by checking the table viewer i am seeing NTUSERNAME is not a key over there,is it not getting data due to this as since when user is logged the NTUSERNAME is the data and according to this there is no combinition data ...&lt;/P&gt;&lt;P&gt;Will this could be one reason ?&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahasweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2009 19:19:37 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-09T19:19:37Z</dc:date>
    <item>
      <title>Macro to hide the sheets according to the logged in USER???</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181422#M47456</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;Will any one please help me by giving the macro code which will hide the sheet according to the USER logged in to the application?&lt;/P&gt;&lt;P&gt;Actually i have section access with NTNAME and i want to hide the sheet according to the user logged in and again the data also has to be restricted with respect to the user.&lt;/P&gt;&lt;P&gt;For me the data is getting restricted but the sheets are not getting hidden according to the USER.&lt;/P&gt;&lt;P&gt;I have given the conditional show statement as&lt;/P&gt;&lt;P&gt;"=if(VIEWING_ROLE_NAME = 'Operations Manager' or QVUSER() = 'ADMIN',1,0)"&lt;/P&gt;&lt;P&gt;Here the viewing role is coming from database.But one more doubt here will this VIEWING_ROLE_NAME should be a key for my data base script also. I dont know.But i dont have this key present in my data script&lt;/P&gt;&lt;P&gt;But for me the sheet is getting hidden, so i want some macro which will hide the sheet.&lt;/P&gt;&lt;P&gt;Please provide me some solution ,i need this urgent.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahasweta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 17:44:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181422#M47456</guid>
      <dc:creator />
      <dc:date>2009-12-09T17:44:46Z</dc:date>
    </item>
    <item>
      <title>Macro to hide the sheets according to the logged in USER???</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181423#M47457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use "Conditional Show" expression to hide the sheet (Sheet Properties -&amp;gt; General). Example:&lt;/P&gt;&lt;P&gt;=UserGroup = 'Accounting'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 18:56:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181423#M47457</guid>
      <dc:creator />
      <dc:date>2009-12-09T18:56:01Z</dc:date>
    </item>
    <item>
      <title>Macro to hide the sheets according to the logged in USER???</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181424#M47458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So one quick check please .&lt;/P&gt;&lt;P&gt;So this UserGroup should be one key for my case right?&lt;/P&gt;&lt;P&gt;Else to fetch the data it has to fetch with respect to this role as well, am i correct?&lt;/P&gt;&lt;P&gt;Please validate me.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahasweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 19:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181424#M47458</guid>
      <dc:creator />
      <dc:date>2009-12-09T19:14:57Z</dc:date>
    </item>
    <item>
      <title>Macro to hide the sheets according to the logged in USER???</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181425#M47459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucia,&lt;/P&gt;&lt;P&gt;I am giving the condition same as you said, but when i am opening that i am not getting any data, by checking the table viewer i am seeing NTUSERNAME is not a key over there,is it not getting data due to this as since when user is logged the NTUSERNAME is the data and according to this there is no combinition data ...&lt;/P&gt;&lt;P&gt;Will this could be one reason ?&lt;/P&gt;&lt;P&gt;Please help me.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahasweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2009 19:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181425#M47459</guid>
      <dc:creator />
      <dc:date>2009-12-09T19:19:37Z</dc:date>
    </item>
    <item>
      <title>Macro to hide the sheets according to the logged in USER???</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181426#M47460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add UserGroup field to your Section Access security table (the one with NTNAME) and test the expression above.&lt;/P&gt;&lt;P&gt;PS: Always save a copy of the document before screwing with security!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Dec 2009 01:48:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181426#M47460</guid>
      <dc:creator />
      <dc:date>2009-12-10T01:48:51Z</dc:date>
    </item>
    <item>
      <title>Macro to hide the sheets according to the logged in USER???</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181427#M47461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use this macro set a variable true or false depending of the logged user:&lt;/P&gt;&lt;P&gt;Sub ObtenerUsuario&lt;BR /&gt; set temp = ActiveDocument.GetApplication.GetProperties&lt;BR /&gt; 'vUsuario = temp.UserName&lt;BR /&gt; if temp.UserName="Domain\user1" then&lt;BR /&gt; vUsuario=true&lt;BR /&gt; elseif temp.UserName="Domain\user2" then&lt;BR /&gt; vUsuario=true&lt;BR /&gt; else&lt;BR /&gt; vUsuario=false&lt;BR /&gt; end if&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold; padding-left: 30px"&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;In Documents properties I put this macro to run on when the documents is opened. Then in Sheet properties I set the sheet to be showed when :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=$(vUsuario)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;bye.&lt;/STRONG&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Apr 2010 15:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-to-hide-the-sheets-according-to-the-logged-in-USER/m-p/181427#M47461</guid>
      <dc:creator />
      <dc:date>2010-04-29T15:50:19Z</dc:date>
    </item>
  </channel>
</rss>

