<?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 OSUser Conditional Show in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OSUser-Conditional-Show/m-p/961803#M330027</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;&lt;/P&gt;&lt;P&gt;I have a dashboard with some elements that I want to show or hide based on the user of the PC it is being viewed on.&amp;nbsp; I've got a separate 'security' table set up with a list of usernames, then a 1 or 0 for access or no access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The conditional show statement I use is something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Only({&amp;lt;&lt;EM&gt;username&lt;/EM&gt;={$(=osuser)}&amp;gt;} &lt;EM&gt;permission&lt;/EM&gt;)=1,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;username &lt;/EM&gt;is the username field name and &lt;EM&gt;permission &lt;/EM&gt;is the field that is linked to the sheet/object I want to show or hide. If the username of the person logged in to the PC is found in the security table and the &lt;EM&gt;permission&lt;/EM&gt; field contains a 1, then it is shown, otherwise it is not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works for all usernames except for those that contain hyphens - all objects are displayed for these users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone shed any light?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Oct 2015 16:58:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-12T16:58:15Z</dc:date>
    <item>
      <title>OSUser Conditional Show</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-Conditional-Show/m-p/961803#M330027</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;&lt;/P&gt;&lt;P&gt;I have a dashboard with some elements that I want to show or hide based on the user of the PC it is being viewed on.&amp;nbsp; I've got a separate 'security' table set up with a list of usernames, then a 1 or 0 for access or no access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The conditional show statement I use is something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=If(Only({&amp;lt;&lt;EM&gt;username&lt;/EM&gt;={$(=osuser)}&amp;gt;} &lt;EM&gt;permission&lt;/EM&gt;)=1,1,0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;username &lt;/EM&gt;is the username field name and &lt;EM&gt;permission &lt;/EM&gt;is the field that is linked to the sheet/object I want to show or hide. If the username of the person logged in to the PC is found in the security table and the &lt;EM&gt;permission&lt;/EM&gt; field contains a 1, then it is shown, otherwise it is not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works for all usernames except for those that contain hyphens - all objects are displayed for these users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone shed any light?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 16:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-Conditional-Show/m-p/961803#M330027</guid>
      <dc:creator />
      <dc:date>2015-10-12T16:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser Conditional Show</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-Conditional-Show/m-p/961804#M330028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try enclosing the $(=osuser) in double quotes?&lt;/P&gt;&lt;P&gt;Usually it should be enclosed in double quotes so as to avoid the problems caused by special characters and spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 17:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-Conditional-Show/m-p/961804#M330028</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-10-12T17:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser Conditional Show</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-Conditional-Show/m-p/961805#M330029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;osuser()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 17:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-Conditional-Show/m-p/961805#M330029</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-10-12T17:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser Conditional Show</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-Conditional-Show/m-p/961806#M330030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Resolved:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per maxgro's response, it should've been osuser() in the original post (typo).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution was to put single quotes around the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;$(=osuser()) in the set analysis.&amp;nbsp; I think the hyphen was being treated as an operand rather than text, the quotes forced it to be considered as text.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2015 10:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-Conditional-Show/m-p/961806#M330030</guid>
      <dc:creator />
      <dc:date>2015-10-13T10:16:38Z</dc:date>
    </item>
  </channel>
</rss>

