<?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 Multiple Selection Trigger, Issue with Strings containing Spaces in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Selection-Trigger-Issue-with-Strings-containing-Spaces/m-p/508330#M190035</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on a file that requires listbox filtering using another listbox via triggers.&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #ff0000;"&gt;Occ&lt;/EM&gt; is the controlling listbox and the listbox that needs to be modified is AllocValues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I works with &lt;STRONG&gt;singular&lt;/STRONG&gt; values: Trigger, Select in Field, =&lt;SPAN style="color: #ff0000;"&gt;Occ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I works with &lt;STRONG&gt;multiple&lt;/STRONG&gt; values that do not contain spaces:&amp;nbsp;&amp;nbsp; Trigger, Select in Field, ='(' &amp;amp;Replace(GetFieldSelections(&lt;SPAN style="color: #ff0000;"&gt;Occ&lt;/SPAN&gt;),',','|') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the issue is that any values within &lt;EM style="color: #ff0000;"&gt;Occ&lt;/EM&gt; that have a space do not make it over to the receiving listbox.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried ='("' &amp;amp;Replace(GetFieldSelections(&lt;SPAN style="color: #ff0000;"&gt;Occ&lt;/SPAN&gt;),',','"|"') &amp;amp; '")' to wrap each entry with "" but that didn't work as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have guidance for this issue? Can I do a replace or something to make the items that contain spaces get picked up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Aug 2013 16:46:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-20T16:46:31Z</dc:date>
    <item>
      <title>Multiple Selection Trigger, Issue with Strings containing Spaces</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Selection-Trigger-Issue-with-Strings-containing-Spaces/m-p/508330#M190035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on a file that requires listbox filtering using another listbox via triggers.&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #ff0000;"&gt;Occ&lt;/EM&gt; is the controlling listbox and the listbox that needs to be modified is AllocValues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I works with &lt;STRONG&gt;singular&lt;/STRONG&gt; values: Trigger, Select in Field, =&lt;SPAN style="color: #ff0000;"&gt;Occ&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I works with &lt;STRONG&gt;multiple&lt;/STRONG&gt; values that do not contain spaces:&amp;nbsp;&amp;nbsp; Trigger, Select in Field, ='(' &amp;amp;Replace(GetFieldSelections(&lt;SPAN style="color: #ff0000;"&gt;Occ&lt;/SPAN&gt;),',','|') &amp;amp; ')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the issue is that any values within &lt;EM style="color: #ff0000;"&gt;Occ&lt;/EM&gt; that have a space do not make it over to the receiving listbox.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried ='("' &amp;amp;Replace(GetFieldSelections(&lt;SPAN style="color: #ff0000;"&gt;Occ&lt;/SPAN&gt;),',','"|"') &amp;amp; '")' to wrap each entry with "" but that didn't work as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have guidance for this issue? Can I do a replace or something to make the items that contain spaces get picked up?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 16:46:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Selection-Trigger-Issue-with-Strings-containing-Spaces/m-p/508330#M190035</guid>
      <dc:creator />
      <dc:date>2013-08-20T16:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Selection Trigger, Issue with Strings containing Spaces</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Selection-Trigger-Issue-with-Strings-containing-Spaces/m-p/508331#M190036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using double quotes should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your replace method introduces an additional space for all values but the the first, which seems not to bother QV when using values without a space, but containing a space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should correct for that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='("' &amp;amp;Replace(GetFieldSelections(Occ),', ','"|"') &amp;amp; '")'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check also attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 19:29:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Selection-Trigger-Issue-with-Strings-containing-Spaces/m-p/508331#M190036</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-08-20T19:29:33Z</dc:date>
    </item>
  </channel>
</rss>

