<?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: Expression will not work script side in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687755#M671603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a sample qvw that demonstrates the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Sep 2014 08:01:43 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-09-02T08:01:43Z</dc:date>
    <item>
      <title>Expression will not work script side</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687751#M671599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an expression that works fine in a table box or chart and i want to use this script side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason I need it script side is I want to create a new field with a flag in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(max(len(keepchar(lower([Telephone Number]), '- ! # $ % ( ) , * . : ; ? @ [ ] { } | ~ &amp;lt; &amp;gt; = £ / \ &amp;amp; "'))) &amp;gt; 0, 1, 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically the expression checks the telephone number field to see if there are any characters in there that should not be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts are appreciated !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Stuart &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 07:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687751#M671599</guid>
      <dc:creator />
      <dc:date>2014-09-02T07:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expression will not work script side</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687752#M671600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use max() which is an aggregation function you have to use 'Group By' clause as well in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, using FindOneOf() would possibly be a better choice, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;STRONG&gt;FindOneOf&lt;/STRONG&gt;([Telephone Number]), '- ! # $ % ( ) , * . : ; ? @ [ ] { } | ~ &amp;lt; &amp;gt; = £ / \ &amp;amp; "') &amp;gt; 0, 1, 0) as Flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 07:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687752#M671600</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-09-02T07:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Expression will not work script side</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687753#M671601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional to Tresesco reply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In script u can use like this'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(keepchar(lower([Telephone Number]), '- ! # $ % ( ) , * . : ; ? @ [ ] { } | ~ &amp;lt; &amp;gt; = £ / \ &amp;amp; "')) &amp;gt; 0, 1, 0) as flag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 07:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687753#M671601</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2014-09-02T07:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression will not work script side</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687754#M671602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use FindOneOf and a strange thing happens. On the Design side it works fine as an Expression. On the script side it is flagging some fields that do not have issues. Side by side in a Pivot chart I can see the strange anomaly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 07:53:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687754#M671602</guid>
      <dc:creator />
      <dc:date>2014-09-02T07:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Expression will not work script side</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687755#M671603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you post a sample qvw that demonstrates the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 08:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687755#M671603</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-09-02T08:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Expression will not work script side</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687756#M671604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;App contains sensitive info. Will try and make a small app with the same issue but with fake data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 08:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687756#M671604</guid>
      <dc:creator />
      <dc:date>2014-09-02T08:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Expression will not work script side</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687757#M671605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actualy on detailed investigation its something to do with the data in that field auto purging spaces. So I think your expression works fine its another issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks very much&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stuart&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 09:09:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-will-not-work-script-side/m-p/687757#M671605</guid>
      <dc:creator />
      <dc:date>2014-09-02T09:09:58Z</dc:date>
    </item>
  </channel>
</rss>

