<?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 string for exact match in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956376#M328631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case try using this with parenthesis around it with double quotes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;(&lt;/SPAN&gt;"' &amp;amp; Only({1&amp;lt;Id = {5}&amp;gt;} Name) &amp;amp; '"&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;)&lt;/SPAN&gt;'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Dec 2015 10:42:41 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-21T10:42:41Z</dc:date>
    <item>
      <title>Search string for exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956367#M328622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my data model I have a table with data like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Id&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;ab&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;abc&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;d&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in my application I have a listbox which displays the field Name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need a button, and when the user clicks on the button, the name with Id=1 should be selected. The Ids are fixed, but Names may change. So I can't use the value of Name in the search string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, in the searh string of the select in field action, I search Name with this expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;='"'&amp;amp;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({1&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={1} &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;amp;'"' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Which works for any Id but Id=1. For Id=1, the searh string will become "a", and QlikView will select everything that starts with an a. So it selects both a, ab and abc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;How I can I do this so it only selects values with an exact match?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Also, if someone knows a simpler way to do this then with my only-function, that would be nice too &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 11:45:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956367#M328622</guid>
      <dc:creator>hfkchristian</dc:creator>
      <dc:date>2015-12-18T11:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search string for exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956368#M328623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are searching from Id, what result you will get if you use below Search String...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only({&amp;lt;Id = {1}&amp;gt;}Name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 13:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956368#M328623</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-12-18T13:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Search string for exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956369#M328624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try without double quotes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;=Only({1&amp;lt;Id = {1}&amp;gt;} Name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems to be working for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 13:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956369#M328624</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-18T13:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Search string for exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956370#M328625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure but it might have something to do with your selection for Default Search Mode. Check Settings-&amp;gt;Document Properties-&amp;gt;Presentation-&amp;gt;Default Search Mode. Select "Use Normal Search" and try again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 14:05:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956370#M328625</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-18T14:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: Search string for exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956371#M328626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add two actions to your text box. The first is a Select in Field action that selects 1 in the field Id. The second is a Select Possible action for the field Name. No need for search strings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Dec 2015 14:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956371#M328626</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-19T14:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search string for exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956372#M328627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I don't use double quites, everything gets selected. I think I need to use quotes, because the names may contain spaces?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 08:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956372#M328627</guid>
      <dc:creator>hfkchristian</dc:creator>
      <dc:date>2015-12-21T08:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Search string for exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956373#M328628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The search mode under document properties was allready set to normal. Search mode under user preferences was set to fuzzy. I changed that to normal too, but I still get the same result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 08:41:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956373#M328628</guid>
      <dc:creator>hfkchristian</dc:creator>
      <dc:date>2015-12-21T08:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search string for exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956374#M328629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works, but I will actually need three actions for this. First to select the id, then select possible names, and then clear the selected id. I was hoping to do all this with one action. I need a lot of these selections, and trigger actions in QlikView are not presented in a user friendly way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wish a could use a macro, but it needs to work in the AJAX client.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 08:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956374#M328629</guid>
      <dc:creator>hfkchristian</dc:creator>
      <dc:date>2015-12-21T08:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search string for exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956375#M328630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should probably just let users make the selections they need instead of doing all sorts of magic in the background with triggers, actions, macro's and whatnot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 10:37:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956375#M328630</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-12-21T10:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search string for exact match</title>
      <link>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956376#M328631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case try using this with parenthesis around it with double quotes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;='&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;(&lt;/SPAN&gt;"' &amp;amp; Only({1&amp;lt;Id = {5}&amp;gt;} Name) &amp;amp; '"&lt;SPAN style="color: #ff0000; font-size: 14pt;"&gt;)&lt;/SPAN&gt;'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 10:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Search-string-for-exact-match/m-p/956376#M328631</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-21T10:42:41Z</dc:date>
    </item>
  </channel>
</rss>

