<?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: OSUser vs QVUser in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382340#M816249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's Section Access was designed for:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1853"&gt;Introduction to Section Access&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Sep 2017 19:18:04 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2017-09-11T19:18:04Z</dc:date>
    <item>
      <title>OSUser vs QVUser</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382335#M816244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wanted to know how OSUser and QVUser works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For e.g If I have A.qvw file in which I am using OSUser (Let osUser = OSUser()) and QVUser (Let qvUser = qvUser()) in script &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without reloading what will be the value when different users access A1.qvw file?&lt;/P&gt;&lt;P&gt;Means I (as User1) reloaded the file and deployed it. &lt;/P&gt;&lt;P&gt;When User1 and User2 access the A1.qvw file what will be the value of variable osUser and qvUser in script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382335#M816244</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser vs QVUser</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382336#M816245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LET will evaluate the expression (OSUser() resp. QVUser() ) once during script execution and assign the result to the variable (i.e. a string containing the user). No update of the variable value until you re-load.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ScriptRegularStatements/Let.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/ScriptRegularStatements/Let.htm"&gt;Let ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you want to create a variable that will update dynamically in the frontend like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET User = '=OSUser()';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LET User = '=QVUser()';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 15:21:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382336#M816245</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-09-09T15:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser vs QVUser</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382337#M816246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the variable osUser is stored with the A.qvw file and it doesn't change until you reload the .qvw.&lt;/P&gt;&lt;P&gt;So User1 and User2 will will get the same value of the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use OSUser() &lt;STRONG&gt;function&lt;/STRONG&gt; in a chart, User1 and User2 will get different values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 15:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382337#M816246</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-09-09T15:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser vs QVUser</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382338#M816247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your first question : OSUser will show the current user you are using on your operating system; QVUser brings you the last User from section access who used the application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the second statement the variables will be yours for both yours.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the third state: &lt;SPAN style="font-size: 13.3333px;"&gt;QVUser &lt;/SPAN&gt;will return last user that entered the app and &lt;SPAN style="font-size: 13.3333px;"&gt;OSUser will be different, depending on their system. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 11:46:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382338#M816247</guid>
      <dc:creator>andrei_delta</dc:creator>
      <dc:date>2017-09-11T11:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser vs QVUser</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382339#M816248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;How can I use below in where clause of resident load table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET User = '=OSuser()";&lt;/P&gt;&lt;P&gt;If my table has following data&lt;/P&gt;&lt;P&gt;User,Region&lt;/P&gt;&lt;P&gt;User1,US&lt;/P&gt;&lt;P&gt;User2,UK&lt;/P&gt;&lt;P&gt;User1, Spain&lt;/P&gt;&lt;P&gt;User3,France&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want below output if User1 uses .qvw file&lt;/P&gt;&lt;P&gt;User,Region&lt;/P&gt;&lt;P&gt;User1, US&lt;/P&gt;&lt;P&gt;User2,-&lt;/P&gt;&lt;P&gt;User1, Spain&lt;/P&gt;&lt;P&gt;User3,-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried but filter is not applied&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 19:13:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382339#M816248</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-11T19:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser vs QVUser</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382340#M816249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's Section Access was designed for:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1853"&gt;Introduction to Section Access&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 19:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382340#M816249</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-09-11T19:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser vs QVUser</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382341#M816250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;I donot want data reduction.&lt;/P&gt;&lt;P&gt;I want to mask the data(columns) which is not applicable to logged in user.&lt;/P&gt;&lt;P&gt;As there are many objects,&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I donot want to this at object level.Instead.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have tried the various approaches,but the approach of ='=OSUser()', fits my requirement. But now only concern is how to use it where condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 02:31:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382341#M816250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-12T02:31:45Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser vs QVUser</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382342#M816251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't get what you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your previous example with the Region field indicates that you do want data reduction (i.e. a filter of field values depending on user accessing the QVW). Now you are talking about showing different fields / columns depending on the user (which you can accomplish using section access in combination with the OMIT field in section access table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use a WHERE clause in the script, then this would require to reload the data when a new user accesses the QVW, I don't think that's what you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 09:52:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382342#M816251</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-09-12T09:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser vs QVUser</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382343#M816252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to show all the records from table but mask the critical data (sale price for the country which users does not belong) for other users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot do this at object level as there are many object on the dashboard. Also, user can create there own graph/pivots. &lt;/P&gt;&lt;P&gt;I want to handle this at script level hence require userid so that I apply filter on Resident Load table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 07:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382343#M816252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-13T07:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser vs QVUser</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382344#M816253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And why can't you use section access for this requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't want to use section access, what is your exact issue with using a WHERE clause?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 09:10:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382344#M816253</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-09-13T09:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser vs QVUser</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382345#M816254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried section access but it reduces the data. Means it displays the rows which is applicable to that user.&lt;/P&gt;&lt;P&gt;I want to show all the records from table but mask the data in critical columns which is not applicable to him.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am trying to use ='=OSUser()' ( which fits my requirement) in where clause as follows it gives error = =Osuser not found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vuser= '=OSUser()';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Sql connection string&lt;/P&gt;&lt;P&gt;Configusers:&lt;/P&gt;&lt;P&gt;SQL SELECT [UserID],[Country] FROM tbl_Entitlement;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;Config2:&lt;/P&gt;&lt;P&gt;load&amp;nbsp; [UserID] ,Country resident ConfigUsers where UserID= '$(vuser)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I have tried the following, but the error = =Osuser not found is displayed.&lt;/P&gt;&lt;P&gt;Config3:&lt;/P&gt;&lt;P&gt;load&amp;nbsp; [UserID] ,Country resident ConfigUsers where UserID= '=OSUser()';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 11:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382345#M816254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-13T11:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: OSUser vs QVUser</title>
      <link>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382346#M816255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET User = '=OSUser()';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will create a variable that is updated dynamically in the frontend, not in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to use the user in the script, just use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET User = OSUser();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Config3:&lt;/P&gt;&lt;P&gt;load&amp;nbsp; [UserID] ,Country resident ConfigUsers&lt;/P&gt;&lt;P&gt;where UserID= '$(User)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I can't see how this will be better serving your requirements than the section access approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I don't have much more time to spend on this, so hopefully you have enough Information to work on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 11:51:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/OSUser-vs-QVUser/m-p/1382346#M816255</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-09-13T11:51:14Z</dc:date>
    </item>
  </channel>
</rss>

