<?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 Retrieve the NTuser into qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258848#M1184222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks very much I will try and let you know the feedback&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Oct 2011 20:14:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-18T20:14:35Z</dc:date>
    <item>
      <title>Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258842#M1184216</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;&lt;/P&gt;&lt;P&gt;I need to retrieve the NT user account into the qlikview file , anyone knows if is possible and what is the code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 19:29:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258842#M1184216</guid>
      <dc:creator />
      <dc:date>2011-10-18T19:29:04Z</dc:date>
    </item>
    <item>
      <title>Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258843#M1184217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know what do you want exactly, but you can use the function OSUser() to get the current user account in the form DOMAIN\USERNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that what you were looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 19:42:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258843#M1184217</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-18T19:42:31Z</dc:date>
    </item>
    <item>
      <title>Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258844#M1184218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fernando ~ can you clarify what exactly is it you are trying to do?&amp;nbsp; There is a function OSUser() which will return the currently logged in user, but I'm not sure that's what you're after...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Isaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 19:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258844#M1184218</guid>
      <dc:creator>isaiah82</dc:creator>
      <dc:date>2011-10-18T19:43:27Z</dc:date>
    </item>
    <item>
      <title>Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258845#M1184219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;That’s excatly what I want, but what is exactly the code in script to retrieve this value ? I need this value in a field to use this field in a script to exclude some records from one file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Thanks and regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Fernando. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 19:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258845#M1184219</guid>
      <dc:creator />
      <dc:date>2011-10-18T19:51:32Z</dc:date>
    </item>
    <item>
      <title>Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258846#M1184220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; That’s exactly what I want, but what is exactly the code in script to retrieve this value? , I need this value in a field&amp;nbsp; to use in a script to exclude some records in a SQL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Thanks and regards &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 19:55:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258846#M1184220</guid>
      <dc:creator />
      <dc:date>2011-10-18T19:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258847#M1184221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following should work, but it will always return the user running the reload:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;FROM File&lt;/P&gt;&lt;P&gt;WHERE OSUser() = 'DOMAIN\GRANTEDUSER';&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want some users to see only some pieces of information, I'd use instead section access, which gives you further control on the same application on what can any given user see. There are a lot of information on how to build a section access if you never did before, but &lt;A _jive_internal="true" href="https://community.qlik.com/thread/34021"&gt;this&lt;/A&gt; and &lt;A _jive_internal="true" href="https://community.qlik.com/thread/31255"&gt;this&lt;/A&gt; and &lt;A _jive_internal="true" href="https://community.qlik.com/thread/30816"&gt;this&lt;/A&gt; threads are a good start point. Check the Documents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 19:57:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258847#M1184221</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-18T19:57:39Z</dc:date>
    </item>
    <item>
      <title>Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258848#M1184222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks very much I will try and let you know the feedback&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 20:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258848#M1184222</guid>
      <dc:creator />
      <dc:date>2011-10-18T20:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258849#M1184224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Hello Miguel,&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;I try to do it and I receive a error message&amp;nbsp; 'OSUser' is not a recognized built-in function name , do you have a clue what could be , is necessary to do any else in the script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-family: 'Calibri','sans-serif'; color: #1f497d; font-size: 11pt;"&gt;Fernando.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 08:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258849#M1184224</guid>
      <dc:creator />
      <dc:date>2011-10-19T08:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258850#M1184226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I may misunderstood the question. This makes more sense to me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;IF Upper(OSUser()) = 'DOMAIN\USERNAME' THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM Source;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSEIF Upper(OSUser()) = 'DOMAIN\ADMIN' THEN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM Source2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END IF&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes more sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 08:53:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258850#M1184226</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-19T08:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258851#M1184227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; Hello Miguel,&lt;/P&gt;&lt;P&gt;Sorry but I don't understand what do you mean by this code.&lt;/P&gt;&lt;P&gt;I explain better my issue, I have a file with several employees and from this file I want to select only the one is login in .&lt;/P&gt;&lt;P&gt;I try the first time , this code as per your suggestion&amp;nbsp; as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;P&gt;LOAD&amp;nbsp; *&lt;/P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 1;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;SQL&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="font-size: 8pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;BR /&gt;FROM "Europe_BI".dbo."D_SALES_REP" where "SALES_REP_NT_ACCOUNT" = OSUser(); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then gives me the error i told , how your last sugestion is apply to my need , sorry but I didn't understand.&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style=": ; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style=": ; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;Thanks very much for your help.&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style=": ; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style=": ; font-size: 8pt;"&gt;﻿&lt;/STRONG&gt;&lt;/STRONG&gt;Fernando.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 11:22:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258851#M1184227</guid>
      <dc:creator />
      <dc:date>2011-10-19T11:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258852#M1184230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using SELECT (that queries the database manager) and OSUser() (QlikView function, so non existent in your DBM). But you can do something like that with a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;LET vCurrentUser = OSUser();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Europe_BI".dbo."D_SALES_REP"&lt;/P&gt;&lt;P&gt;WHERE SALES_REP_NT_ACCOUNT = '$(vCurrentUser)';&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since OSUser() returns a string, I quote the variable that returns the resulting value. Depending on your DB and your driver, you may need double quoting or something similar for strings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense this time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 11:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258852#M1184230</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-19T11:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258853#M1184231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Miguel, it seems it works at least dosen't have a error. But sorry I have another question do you know how to see the content of the variable vcurrentuser, I like to see the content to the see how the information is retrieved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for all help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fernando.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 12:32:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258853#M1184231</guid>
      <dc:creator />
      <dc:date>2011-10-19T12:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258854#M1184232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fernando,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you mean to see the value when the reload takes place. If so, then use the following code with the TRACE function (TRACE only writes in the progress dialog)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;LET vCurrentUser = OSUser();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRACE $(vCurrentUser);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 14:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258854#M1184232</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-19T14:12:23Z</dc:date>
    </item>
    <item>
      <title>Retrieve the NTuser into qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258855#M1184233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible/practical to read into QlikView the ntuser.dat file, directly or from a copy, to find the users in the system so that you don't need to hard code into the script NT user names that may change over time.&lt;/P&gt;&lt;P&gt;As I understand it this file can't be read as it's always open, making this more of an O/S question (Windows 7 Professional in my case) than a QlikView one. I just wonder whether anyone has tried to do this, or can see a need to do so.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2012 15:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Retrieve-the-NTuser-into-qlikview/m-p/258855#M1184233</guid>
      <dc:creator />
      <dc:date>2012-03-22T15:11:08Z</dc:date>
    </item>
  </channel>
</rss>

