<?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 Putting Unique Text Around List Items in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Putting-Unique-Text-Around-List-Items/m-p/2467391#M99327</link>
    <description>&lt;P&gt;I have a Variable Input where a customer enters a list.&amp;nbsp; i.e.: Software, Engineer, IT, CISO, CEO.&lt;/P&gt;
&lt;P&gt;I am using that list to generate some Set statements for data filtering.&lt;/P&gt;
&lt;P&gt;I can do this:&amp;nbsp;&amp;nbsp;Chr(39) &amp;amp; Replace('$(vTitle)',', ', Chr(39) &amp;amp; ', ' &amp;amp; Chr(39)) &amp;amp; Chr(39)&lt;/P&gt;
&lt;P&gt;to generate a list like 'Software', 'Engineer', 'IT', 'CISO', 'CEO'. - This list in a set statement does an explicit case-sensitive match.&lt;/P&gt;
&lt;P&gt;Or I can do this:&amp;nbsp; '"*' &amp;amp; Replace('$(vTitle)', ', ', '*", "*') &amp;amp; '*"'&lt;/P&gt;
&lt;P&gt;to generate a list like "*Software*", "*Engineer*", "*IT*", "*CISO*", "*CEO*" - This list in a set statement does a case-insensitive match of the word anywhere in a job title.&lt;/P&gt;
&lt;P&gt;What I want is the ability to insert some logic that says if an item is 4 letters or less, then do the first one, but if it is longer than that, do the second.&amp;nbsp; So, it would generate a list like:&amp;nbsp; "*Software*", "*Engineer*",&amp;nbsp;'IT', 'CISO', 'CEO'.&lt;/P&gt;
&lt;P&gt;Does anyone know how to do that?&amp;nbsp; The user needs to be able to enter anything, so perhaps some combination of an IF() statement and the ValueList() function to evaluate each item in the list uniquely?&amp;nbsp; I have not been able to find anything that works yet.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 00:09:53 GMT</pubDate>
    <dc:creator>shansen</dc:creator>
    <dc:date>2024-07-03T00:09:53Z</dc:date>
    <item>
      <title>Putting Unique Text Around List Items</title>
      <link>https://community.qlik.com/t5/App-Development/Putting-Unique-Text-Around-List-Items/m-p/2467391#M99327</link>
      <description>&lt;P&gt;I have a Variable Input where a customer enters a list.&amp;nbsp; i.e.: Software, Engineer, IT, CISO, CEO.&lt;/P&gt;
&lt;P&gt;I am using that list to generate some Set statements for data filtering.&lt;/P&gt;
&lt;P&gt;I can do this:&amp;nbsp;&amp;nbsp;Chr(39) &amp;amp; Replace('$(vTitle)',', ', Chr(39) &amp;amp; ', ' &amp;amp; Chr(39)) &amp;amp; Chr(39)&lt;/P&gt;
&lt;P&gt;to generate a list like 'Software', 'Engineer', 'IT', 'CISO', 'CEO'. - This list in a set statement does an explicit case-sensitive match.&lt;/P&gt;
&lt;P&gt;Or I can do this:&amp;nbsp; '"*' &amp;amp; Replace('$(vTitle)', ', ', '*", "*') &amp;amp; '*"'&lt;/P&gt;
&lt;P&gt;to generate a list like "*Software*", "*Engineer*", "*IT*", "*CISO*", "*CEO*" - This list in a set statement does a case-insensitive match of the word anywhere in a job title.&lt;/P&gt;
&lt;P&gt;What I want is the ability to insert some logic that says if an item is 4 letters or less, then do the first one, but if it is longer than that, do the second.&amp;nbsp; So, it would generate a list like:&amp;nbsp; "*Software*", "*Engineer*",&amp;nbsp;'IT', 'CISO', 'CEO'.&lt;/P&gt;
&lt;P&gt;Does anyone know how to do that?&amp;nbsp; The user needs to be able to enter anything, so perhaps some combination of an IF() statement and the ValueList() function to evaluate each item in the list uniquely?&amp;nbsp; I have not been able to find anything that works yet.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 00:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Putting-Unique-Text-Around-List-Items/m-p/2467391#M99327</guid>
      <dc:creator>shansen</dc:creator>
      <dc:date>2024-07-03T00:09:53Z</dc:date>
    </item>
  </channel>
</rss>

