<?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: Why is OSUser() function inconsistent in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Why-is-OSUser-function-inconsistent/m-p/397117#M147939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also found that if I set a document trigger that OnOpen, Sets vUser to OSUser()&lt;BR /&gt;The correct username is used when exporting the file, I guess even when putting the action in the button before the export it somehow doesnt take right away and the export still uses the old variable value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Apr 2013 21:03:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-24T21:03:44Z</dc:date>
    <item>
      <title>Why is OSUser() function inconsistent</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-OSUser-function-inconsistent/m-p/397115#M147937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have an "Action" for one of my Qlikview buttons that is meant to set a variable "vUser" to the current user's OSUser name, this is to name the exported file with their user name as the first part of the file name. I do the variable rename and then the export in the same button list of actions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This is how i set the variable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;TextBetween&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;OSUser&lt;/SPAN&gt;()&amp;amp;'|','\','|')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;sometimes, usually the first time but also seems to happen at random times, I click it and the output is "QVAdmin" other times it is the users name like "E12345" and I've even noticed that it will output both file names sometimes... this seems like a qlitch as I only have one export function or "action".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any ideas? Why does it not get the users OSUser() correctly everytime?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;using QV11 desktop and QV11 server, both have this issue when run on the server... maybe an issue with qv and windows interaction?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 16:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-OSUser-function-inconsistent/m-p/397115#M147937</guid>
      <dc:creator />
      <dc:date>2013-04-24T16:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why is OSUser() function inconsistent</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-OSUser-function-inconsistent/m-p/397116#M147938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if it is related, but maybe gives a hint.&lt;/P&gt;&lt;P&gt;I noticed that if open an aplication with section access in Desktop, QVUser() function returns initially the correct result.&amp;nbsp; Next, if open another application, without section access, not closing the first one, and return to the first, QVUser() returns null.&amp;nbsp; Looks like the result of QVUser() is per QV client session rather than per QV application, and the result is defiend by the last application open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 20:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-OSUser-function-inconsistent/m-p/397116#M147938</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-24T20:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why is OSUser() function inconsistent</title>
      <link>https://community.qlik.com/t5/QlikView/Why-is-OSUser-function-inconsistent/m-p/397117#M147939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also found that if I set a document trigger that OnOpen, Sets vUser to OSUser()&lt;BR /&gt;The correct username is used when exporting the file, I guess even when putting the action in the button before the export it somehow doesnt take right away and the export still uses the old variable value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 21:03:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Why-is-OSUser-function-inconsistent/m-p/397117#M147939</guid>
      <dc:creator />
      <dc:date>2013-04-24T21:03:44Z</dc:date>
    </item>
  </channel>
</rss>

