<?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: select in field - search string - for multiple complex string values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/select-in-field-search-string-for-multiple-complex-string-values/m-p/359076#M133275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay so I was able to figure something out, but its not the most elegant of solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script all I loaded was an inline table with the values from above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;String&lt;/P&gt;&lt;P&gt;01015 - BTR/LAFAYETTE, LA&lt;/P&gt;&lt;P&gt;01003 - SHREVEPORT, LA&lt;/P&gt;&lt;P&gt;01014 - NEW ORLEANS, LA&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I selected the field String.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next we need to create a couple of variables(Settings-&amp;gt;Variable Overview...-&amp;gt;Add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made temp and temp2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp2 ﻿﻿=trim(concat(String,'|'))&lt;/P&gt;&lt;P&gt;temp = '('&amp;amp;Replace(temp2, ' ', '?')&amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create a text box -&amp;gt;Actions -&amp;gt; Add Select in Field For field String and Search String = temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should do the trick when you click on the text object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can tell the problem with the search string not working has to do with spaces, so what this does is replaces each space with a '?' which evaluates to any character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also attached the .qvw to show you a working example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Mar 2012 21:55:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-03-19T21:55:18Z</dc:date>
    <item>
      <title>select in field - search string - for multiple complex string values</title>
      <link>https://community.qlik.com/t5/QlikView/select-in-field-search-string-for-multiple-complex-string-values/m-p/359075#M133274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I pass below three string values in a 'Search String' text box of a 'Select in Field' Action?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;01015 - BTR/LAFAYETTE, LA &lt;/P&gt;&lt;P&gt;01003 - SHREVEPORT, LA &lt;/P&gt;&lt;P&gt;01014 - NEW ORLEANS, LA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read in QV help that masking of two strings (A|B) can be passed through search string. But this format doesn't seem to work for above three string values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(01015 - BTR/LAFAYETTE, LA|01003 - SHREVEPORT, LA|01014 - NEW ORLEANS, LA) Any help wiill be appreciated.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using QV 9.0 SR7.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 20:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select-in-field-search-string-for-multiple-complex-string-values/m-p/359075#M133274</guid>
      <dc:creator />
      <dc:date>2012-03-19T20:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: select in field - search string - for multiple complex string values</title>
      <link>https://community.qlik.com/t5/QlikView/select-in-field-search-string-for-multiple-complex-string-values/m-p/359076#M133275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay so I was able to figure something out, but its not the most elegant of solutions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the script all I loaded was an inline table with the values from above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * Inline [&lt;/P&gt;&lt;P&gt;String&lt;/P&gt;&lt;P&gt;01015 - BTR/LAFAYETTE, LA&lt;/P&gt;&lt;P&gt;01003 - SHREVEPORT, LA&lt;/P&gt;&lt;P&gt;01014 - NEW ORLEANS, LA&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I selected the field String.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next we need to create a couple of variables(Settings-&amp;gt;Variable Overview...-&amp;gt;Add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made temp and temp2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp2 ﻿﻿=trim(concat(String,'|'))&lt;/P&gt;&lt;P&gt;temp = '('&amp;amp;Replace(temp2, ' ', '?')&amp;amp;')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now create a text box -&amp;gt;Actions -&amp;gt; Add Select in Field For field String and Search String = temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should do the trick when you click on the text object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far as I can tell the problem with the search string not working has to do with spaces, so what this does is replaces each space with a '?' which evaluates to any character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also attached the .qvw to show you a working example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 21:55:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select-in-field-search-string-for-multiple-complex-string-values/m-p/359076#M133275</guid>
      <dc:creator />
      <dc:date>2012-03-19T21:55:18Z</dc:date>
    </item>
    <item>
      <title>select in field - search string - for multiple complex string values</title>
      <link>https://community.qlik.com/t5/QlikView/select-in-field-search-string-for-multiple-complex-string-values/m-p/359077#M133276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Its not just the white space that's a problem but its also any special characters involved in the string. I am using the following expression for my application&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(num(%_Alignment)=2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '('&amp;amp;replace(getfieldselections (CBSA_DESC, '|',1000),' ','?')&amp;amp;')' ,&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '('&amp;amp;replace(getfieldselections (Level4_Display_New, '|',1000),' ','?')&amp;amp;')'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;Where CBSA_DESC and Level4_Display_New are fields with numerous such strings. For example, &lt;/P&gt;&lt;P&gt;03022 - LUBBOCK, TX &lt;/P&gt;&lt;P&gt;03024 - DALLAS, TX (SE) &lt;/P&gt;&lt;P&gt;03023 - SAN ANTONIO, TX(SW) &lt;/P&gt;&lt;P&gt;03021 - CORPUS CHRISTI, TX (NE) &lt;/P&gt;&lt;P&gt;03014 - EL PASO/LAF, TX (N)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 18:09:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/select-in-field-search-string-for-multiple-complex-string-values/m-p/359077#M133276</guid>
      <dc:creator />
      <dc:date>2012-03-20T18:09:05Z</dc:date>
    </item>
  </channel>
</rss>

