<?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 Text box based on OSUser() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-box-based-on-OSUser/m-p/664080#M241851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a USER table in QlikView with a list of QlikView users who could potentially log in. I want to create a text box with the last name of the user who has logged into QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the fields is USERNAME which is essentially the OSUser() name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I log in the OSUser() name is "DH\SCAT" and in the USERS table there is a match on USERNAME I want to pull back the LASTNAME field. So...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If OSUser()=DH\SCAT and USERNAME=DH\SCAT then the text box should show the LASTNAME field of "CAT".&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>Fri, 11 Jul 2014 20:02:12 GMT</pubDate>
    <dc:creator>zagzebski</dc:creator>
    <dc:date>2014-07-11T20:02:12Z</dc:date>
    <item>
      <title>Text box based on OSUser()</title>
      <link>https://community.qlik.com/t5/QlikView/Text-box-based-on-OSUser/m-p/664080#M241851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a USER table in QlikView with a list of QlikView users who could potentially log in. I want to create a text box with the last name of the user who has logged into QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the fields is USERNAME which is essentially the OSUser() name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if I log in the OSUser() name is "DH\SCAT" and in the USERS table there is a match on USERNAME I want to pull back the LASTNAME field. So...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If OSUser()=DH\SCAT and USERNAME=DH\SCAT then the text box should show the LASTNAME field of "CAT".&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>Fri, 11 Jul 2014 20:02:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-box-based-on-OSUser/m-p/664080#M241851</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2014-07-11T20:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Text box based on OSUser()</title>
      <link>https://community.qlik.com/t5/QlikView/Text-box-based-on-OSUser/m-p/664081#M241852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would parsing out the lastname from OSUser() work? If that's the case, you can try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SubField(OSUser(), '\', 2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 20:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-box-based-on-OSUser/m-p/664081#M241852</guid>
      <dc:creator />
      <dc:date>2014-07-11T20:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Text box based on OSUser()</title>
      <link>https://community.qlik.com/t5/QlikView/Text-box-based-on-OSUser/m-p/664082#M241853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does your USER table have last name as a column? if yes, then use a if statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jul 2014 21:23:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-box-based-on-OSUser/m-p/664082#M241853</guid>
      <dc:creator />
      <dc:date>2014-07-11T21:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Text box based on OSUser()</title>
      <link>https://community.qlik.com/t5/QlikView/Text-box-based-on-OSUser/m-p/664083#M241854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try something like that:&lt;/P&gt;&lt;P&gt;=Only({$&amp;lt;username = {'$(=OSUser())'}&amp;gt;} lastname)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2014 03:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-box-based-on-OSUser/m-p/664083#M241854</guid>
      <dc:creator />
      <dc:date>2014-07-12T03:59:29Z</dc:date>
    </item>
  </channel>
</rss>

