<?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 AW:Apply a pre-made search string via action or macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166786#M504884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;instead of "Filter" in SearchString try "=Filter". The thing is working here if I add the "=".&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2009 01:05:29 GMT</pubDate>
    <dc:creator>biester</dc:creator>
    <dc:date>2009-08-26T01:05:29Z</dc:date>
    <item>
      <title>Apply a pre-made search string via action or macro</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166785#M504883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;BR /&gt;&lt;BR /&gt;I have a 'report.ini' file, with report names and filters to search my data by.&lt;BR /&gt;E.g&lt;BR /&gt;Orange Report =Fruit like 'Orange*'&lt;BR /&gt;&lt;BR /&gt;I need to make a button (Action or Macro) that will apply the pre-made search string to my data, I've attached an example to show what I mean.&lt;BR /&gt;&lt;BR /&gt;The idea being that I can make a large list of pre-made reports and search filters, and just add them to the report.ini file as needed.&lt;BR /&gt;This is similar to bookmarks, except my search string might not return any results.&lt;BR /&gt;If I tried to use a bookmark in this situation, it wouldn't store the raw search string I was using (as it wasn't able to make any selections).&lt;BR /&gt;&lt;BR /&gt;I think i'll almost there, but not quite sure on the final stage.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 00:40:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166785#M504883</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-08-26T00:40:01Z</dc:date>
    </item>
    <item>
      <title>AW:Apply a pre-made search string via action or macro</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166786#M504884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;instead of "Filter" in SearchString try "=Filter". The thing is working here if I add the "=".&lt;/P&gt;&lt;P&gt;Rgds,&lt;BR /&gt;Joachim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 01:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166786#M504884</guid>
      <dc:creator>biester</dc:creator>
      <dc:date>2009-08-26T01:05:29Z</dc:date>
    </item>
    <item>
      <title>AW:Apply a pre-made search string via action or macro</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166787#M504885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again Joachim!&lt;BR /&gt;that was about the only thing i hadn't tried &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 01:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166787#M504885</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-08-26T01:36:15Z</dc:date>
    </item>
    <item>
      <title>AW:Apply a pre-made search string via action or macro</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166788#M504886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you have this working, but it seems like a pretty unusual approach to me. In my applications, I'd likely apply the filter at load time to build a new field, like "Fruit Category". So if(left(Fruit,6)='Orange','Orange',if(...)) as "Fruit Category". The user would then just select a Fruit Category of Orange rather than clicking on the Orange button. Or if you really want an Orange button, such as if you have a nice picture of an orange that they can click on, the action can be to select the Orange Fruit Category rather than all Orange Fruit. Just a thought.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2009 04:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166788#M504886</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-08-26T04:55:52Z</dc:date>
    </item>
    <item>
      <title>AW:Apply a pre-made search string via action or macro</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166789#M504887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Why is it that if you copy the exact same string generated by "=Filter" and place it on the Search String field, it does not work?&lt;/P&gt;&lt;P&gt;I've been trying to define a Search String to delect two values with that same expression but it does not seem to work out.&lt;/P&gt;&lt;P&gt;Any help, please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 19:59:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166789#M504887</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2010-04-16T19:59:11Z</dc:date>
    </item>
    <item>
      <title>AW:Apply a pre-made search string via action or macro</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166790#M504888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The "=" syntax means you're specifying a QlikView expression that will be evaluated for each row of the list box, just like you'd made a chart with that as the dimension. Anything with a non-zero value will be selected. The "=" syntax is NOT a way of generating a normal search string.&lt;/P&gt;&lt;P&gt;Looking for two specific values using the "=" syntax could be done like this:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;=match(MyField,'Value1','Value2')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 20:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166790#M504888</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-04-16T20:23:28Z</dc:date>
    </item>
    <item>
      <title>AW:Apply a pre-made search string via action or macro</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166791#M504889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you John! Your expression works in advanced search on a list box, but does not work with the 'Select in Field' Action. Any other workaround?&lt;/P&gt;&lt;P&gt;Thanks! Mike.&lt;/P&gt;&lt;P&gt;&lt;A href="http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/4857.Untitled.png"&gt;&lt;IMG alt="" border="0" src="http://community.qlik.com/resized-image.ashx/__size/550x0/__key/CommunityServer.Discussions.Components.Files/11/4857.Untitled.png" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 20:43:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166791#M504889</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2010-04-16T20:43:29Z</dc:date>
    </item>
    <item>
      <title>AW:Apply a pre-made search string via action or macro</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166792#M504890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our shop is still officially on 8.5. I have unofficially downloaded 9.0, but haven't played with the actions yet. It sounds like the actions simply don't support advanced searches. A potentially-painful workaround would be to code it as a macro, with all the headaches that can entail. I'm not thinking of anything else, but perhaps it's simple, and I just don't have enough 9.0 experience.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Apr 2010 20:55:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166792#M504890</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-04-16T20:55:51Z</dc:date>
    </item>
    <item>
      <title>AW:Apply a pre-made search string via action or macro</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166793#M504891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;The search string value can contain an expression. So to generate an expression as a search argument, you have to use this syntax.&lt;/P&gt;&lt;P&gt;='=expression'&lt;/P&gt;&lt;P&gt;Note that you have to generate the "=" as part of the expression result. So to use a match expression for the field named Key for values 'A', 'B' the search string box value would be:&lt;/P&gt;&lt;P&gt;='= match(Key, ' &amp;amp; chr(39) &amp;amp; 'A' &amp;amp; chr(39) &amp;amp; ',' &amp;amp; chr(39) &amp;amp; 'B' &amp;amp; chr(39) &amp;amp; ')'&lt;/P&gt;&lt;P&gt;It gets a bit ugly because of the need for quotes. There might be a simpler syntax, but you get the idea -- include a leading "=" in the expression result.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 03:35:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166793#M504891</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-04-18T03:35:44Z</dc:date>
    </item>
    <item>
      <title>AW:Apply a pre-made search string via action or macro</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166794#M504892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! It works!&lt;/P&gt;&lt;P&gt;Thank you very much Rob!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 03:56:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166794#M504892</guid>
      <dc:creator>mike_garcia</dc:creator>
      <dc:date>2010-04-18T03:56:30Z</dc:date>
    </item>
    <item>
      <title>AW:Apply a pre-made search string via action or macro</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166795#M504893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thansk Rob,&lt;/P&gt;&lt;P&gt;Figured that the syntax for the selection is ='=sum( { BM01 + BM02 } 1 )'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jul 2010 05:01:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166795#M504893</guid>
      <dc:creator />
      <dc:date>2010-07-01T05:01:26Z</dc:date>
    </item>
    <item>
      <title>Re: Apply a pre-made search string via action or macro</title>
      <link>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166796#M504894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For anyone still trying to figure this out, the following worked for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="34347" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.PNG" src="https://community.qlik.com/legacyfs/online/34347_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the field should go as text, not evaluated via a&amp;nbsp; '='&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the search expression should go as&amp;nbsp;&amp;nbsp;&amp;nbsp; '=Sum(money)&amp;gt;100e6' remember to place a = before the search string to tell qlikview to evaluate the following string....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and a heads up... if it is not working, try deleting all spaces in the search string, I don't know why but once this got a set analysis not working for me and took me hours to find out! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c ya!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Mar 2013 01:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Apply-a-pre-made-search-string-via-action-or-macro/m-p/166796#M504894</guid>
      <dc:creator />
      <dc:date>2013-03-05T01:57:57Z</dc:date>
    </item>
  </channel>
</rss>

