<?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: Search value from reference table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Search-value-from-reference-table/m-p/1145526#M374908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have built section access with security_key, then can use substring() to get proper segment for user's entity. One user can only have one entity, for example hospital Stony Brook. Also we have a list contains eligible entities. Only hospital in this list can see the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2016 19:09:14 GMT</pubDate>
    <dc:creator>fionna51</dc:creator>
    <dc:date>2016-06-30T19:09:14Z</dc:date>
    <item>
      <title>Search value from reference table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-value-from-reference-table/m-p/1145522#M374904</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;I want to show one critical object only to certain users. I can get user's Entity_ID when user login (unique for every user) . Also, I load an island reference table which contains list of eligible entity IDs who can see this object, field name Eligible_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this object Layout tab, how should I write the condition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 01:04:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-value-from-reference-table/m-p/1145522#M374904</guid>
      <dc:creator>fionna51</dc:creator>
      <dc:date>2016-06-30T01:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Search value from reference table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-value-from-reference-table/m-p/1145523#M374905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use osuser() for this, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;match(osuser(), '$(=concat(YourUserlistField, chr(39) &amp;amp; ',' &amp;amp; chr(39)))')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if your data/objects are really confidential then you should consider to use &lt;A href="https://community.qlik.com/docs/DOC-9039"&gt;Section Access&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 08:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-value-from-reference-table/m-p/1145523#M374905</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-06-30T08:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Search value from reference table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-value-from-reference-table/m-p/1145524#M374906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Entity_ID was derived from user_id, the data type is exactly same as Eligible_ID in my reference list. But if I use:&lt;/P&gt;&lt;P&gt; match(Entity_ID, Eligible_ID), it won't work. One user only has one Entity_ID value, but Eligible_Id is a list of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 12:17:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-value-from-reference-table/m-p/1145524#M374906</guid>
      <dc:creator>fionna51</dc:creator>
      <dc:date>2016-06-30T12:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search value from reference table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-value-from-reference-table/m-p/1145525#M374907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;My Entity_ID was derived from user_id&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;isn't quite clear to me - from where come these values. For reading the current user there are only two functions: osuser() and qvuser().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The concat-function within $-sign expansion will return a list from your user-table - therefore try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;match(osuser(), '$(=concat(&lt;STRONG&gt;Eligible_ID&lt;/STRONG&gt;, chr(39) &amp;amp; ',' &amp;amp; chr(39)))')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;further you should check if the osuser() returned the same user like in your user-table - you might need to adjust upper/lower chars and also the domain\user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 18:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-value-from-reference-table/m-p/1145525#M374907</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-06-30T18:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search value from reference table</title>
      <link>https://community.qlik.com/t5/QlikView/Search-value-from-reference-table/m-p/1145526#M374908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have built section access with security_key, then can use substring() to get proper segment for user's entity. One user can only have one entity, for example hospital Stony Brook. Also we have a list contains eligible entities. Only hospital in this list can see the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 19:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-value-from-reference-table/m-p/1145526#M374908</guid>
      <dc:creator>fionna51</dc:creator>
      <dc:date>2016-06-30T19:09:14Z</dc:date>
    </item>
  </channel>
</rss>

