<?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: Section access with wildcards in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268856#M26065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply maxgro. Your solution taught me quite a few new things about Qlik Scripting.&lt;/P&gt;&lt;P&gt;But as Thomas mentions it only works when the wildcard character * is after the first letter like P*. It does not work for PAM* or just *&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2016 17:46:17 GMT</pubDate>
    <dc:creator>mborsadw</dc:creator>
    <dc:date>2016-12-16T17:46:17Z</dc:date>
    <item>
      <title>Section access with wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268851#M26060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From one of the threads (&lt;A _jive_internal="true" data-containerid="2061" data-containertype="14" data-objectid="64709" data-objecttype="1" href="https://community.qlik.com/thread/64709" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;section access and application access&lt;/A&gt;) &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Example:&lt;A href="https://community.qlik.com/legacyfs/online/146773_Several.png"&gt;&lt;IMG alt="Several.png" class="jive-image" height="70" src="https://community.qlik.com/legacyfs/online/146773_Several.png" style="border-width: 203px; font-weight: inherit; font-style: inherit; font-family: inherit; float: left;" width="203" /&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;This table you would interpret as "A can see the data if (Shop=X and Product=ANY) or (Shop=ANY and Product=Y)". But QlikView interprets it the other way around: "A can see data if (Shop=X or Shop=ANY) and (Product=ANY or Product=Y)". So it won't work. A will be able to see everything.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This blog explains how to achieve this using concatenation of the field values and a Bridge which is great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is there a way to support wildcards such as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;THEAD style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TH class="header" style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit; text-align: left; background-position: no-repeat;"&gt;USER&lt;/TH&gt;&lt;TH class="header" style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit; text-align: left; background-position: no-repeat;"&gt;%AUTHID&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;A&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;X|P*&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;A&lt;/TD&gt;&lt;TD style="padding-right: 4px; padding-left: 4px; border: 0px; font-style: inherit; font-family: inherit;"&gt;S*|Y&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In query terms it would be something like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(shop=X and product like 'P%') or (shop like 'S%' and product = Y)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Mufaddal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 15:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268851#M26060</guid>
      <dc:creator>mborsadw</dc:creator>
      <dc:date>2016-12-15T15:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Section access with wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268852#M26061</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;Well, you may have to create your own script doing this in the bridge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something with a loop like this:&lt;/P&gt;&lt;P&gt;// let's imagine your section access : &lt;/P&gt;&lt;P&gt;Security:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;USER, SECURITY_LINK&lt;/P&gt;&lt;P&gt;ABC, A/P*&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;// At the end of the script = the bridge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For i = 0 to noofrows('Security')-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vShop=peek('SHOP',i,'Security');&lt;/P&gt;&lt;P&gt;&amp;nbsp; let vProduct=peek('PRODUCT',i,'Security');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Bridge:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; Fact_Shop&amp;amp;'/'&amp;amp;Fact_Product as Fact_Link,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Fact_Shop&amp;amp;'/'&amp;amp;Fact_Product as SECURITY_LINK&lt;/P&gt;&lt;P&gt;&amp;nbsp; resident FACT_Table&lt;/P&gt;&lt;P&gt;&amp;nbsp; where wildmatch(Fact_Shop,'$(vShop)') and wildmatch(Fact_Product,'$(vProduct)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next i&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 16:39:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268852#M26061</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2016-12-15T16:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Section access with wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268853#M26062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is Looping the only way ? Is it going to be a performance bottleneck assuming I have a couple of million of records in the Fact table.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can I do a 'Where Exists(Field)' with a wildmatch? &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;Kind of like&amp;nbsp; 'WildmatchExists(Field)'?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 18:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268853#M26062</guid>
      <dc:creator>mborsadw</dc:creator>
      <dc:date>2016-12-15T18:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Section access with wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268854#M26063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try the attachment, hope to understand your question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2016 19:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268854#M26063</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2016-12-15T19:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: Section access with wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268855#M26064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even if there were a where exists wildmatch(Field) you would have to do a loop on the security tab values to create a real link with the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try my solution and check if this is ok with time duration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try also the maxgro's solution that is really nice but seems to be working only when you want to use the star only after the first letter of your value, like&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;P* and not PAM*&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 14:43:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268855#M26064</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2016-12-16T14:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Section access with wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268856#M26065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply maxgro. Your solution taught me quite a few new things about Qlik Scripting.&lt;/P&gt;&lt;P&gt;But as Thomas mentions it only works when the wildcard character * is after the first letter like P*. It does not work for PAM* or just *&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 17:46:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268856#M26065</guid>
      <dc:creator>mborsadw</dc:creator>
      <dc:date>2016-12-16T17:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Section access with wildcards</title>
      <link>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268857#M26066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let me try the loop solution that you presented. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 17:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-access-with-wildcards/m-p/1268857#M26066</guid>
      <dc:creator>mborsadw</dc:creator>
      <dc:date>2016-12-16T17:47:09Z</dc:date>
    </item>
  </channel>
</rss>

