<?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: Selection in filed based on OSUser in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Selection-in-filed-based-on-OSUser/m-p/748766#M267183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a trigger attached to the document that when it opens it will select a value in the DomainID Field. The value that you could use could be determined upon opening using this code:&lt;/P&gt;&lt;P&gt;=Max({&amp;lt;userN = {"$(=OSUser() )"}&amp;gt;}DomainId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this will only select the maximum domain value (or min if you use min instead), and will not select both Domains when a user has two. I have not figured out how to do that yet. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jan 2015 19:38:53 GMT</pubDate>
    <dc:creator>cspencer3</dc:creator>
    <dc:date>2015-01-07T19:38:53Z</dc:date>
    <item>
      <title>Selection in filed based on OSUser</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-in-filed-based-on-OSUser/m-p/748765#M267182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to make my application open up with a selected field&amp;nbsp; (DomainId), Based on the user that is opening the application.&lt;/P&gt;&lt;P&gt;In the attached file you can see my OSUser()=MAC-AD\pukach_h and I want the application to open where DomainId=5.&lt;/P&gt;&lt;P&gt;If there is another user trying to open it, for example, MAC-AD\dejav_s it will open with DomainId=3 and so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I set the right expression\trigger to get that?&lt;/P&gt;&lt;P&gt;Is it possible also when One user has two DoaminId?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Hagit&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 14:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-in-filed-based-on-OSUser/m-p/748765#M267182</guid>
      <dc:creator />
      <dc:date>2015-01-07T14:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Selection in filed based on OSUser</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-in-filed-based-on-OSUser/m-p/748766#M267183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could create a trigger attached to the document that when it opens it will select a value in the DomainID Field. The value that you could use could be determined upon opening using this code:&lt;/P&gt;&lt;P&gt;=Max({&amp;lt;userN = {"$(=OSUser() )"}&amp;gt;}DomainId)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this will only select the maximum domain value (or min if you use min instead), and will not select both Domains when a user has two. I have not figured out how to do that yet. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 19:38:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-in-filed-based-on-OSUser/m-p/748766#M267183</guid>
      <dc:creator>cspencer3</dc:creator>
      <dc:date>2015-01-07T19:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Selection in filed based on OSUser</title>
      <link>https://community.qlik.com/t5/QlikView/Selection-in-filed-based-on-OSUser/m-p/748767#M267184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Charles!&lt;/P&gt;&lt;P&gt;It does work.. But I'm still looking for a solution that will help me select also two domains if needed.&lt;/P&gt;&lt;P&gt;If you will have any idea for me, I woul'd be happy to hear about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 09:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Selection-in-filed-based-on-OSUser/m-p/748767#M267184</guid>
      <dc:creator />
      <dc:date>2015-01-08T09:29:53Z</dc:date>
    </item>
  </channel>
</rss>

