<?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: how to escape variable parameter with both quote and comma in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-escape-variable-parameter-with-both-quote-and-comma/m-p/1316330#M408650</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;May be try to use instead of a comma Chr(44)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jul 2017 14:14:34 GMT</pubDate>
    <dc:creator>ahaahaaha</dc:creator>
    <dc:date>2017-07-31T14:14:34Z</dc:date>
    <item>
      <title>how to escape variable parameter with both quote and comma</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-escape-variable-parameter-with-both-quote-and-comma/m-p/1316329#M408649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;Variable function is useful for defining the reusable business logic.&lt;/P&gt;&lt;P&gt;But I found in the variable parameter, it is risky if you have comma inside, because the variable function may treat it and parameter delimiter.&lt;/P&gt;&lt;P&gt;On the other hand it is also risky if you have quote in the parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a simple use case:&lt;/P&gt;&lt;P&gt;I want to create a variable function like below:&lt;/P&gt;&lt;P&gt;vFF= num($1,$2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$2 is the parameter for the format.&lt;/P&gt;&lt;P&gt;I found if you put value without comma, it is working. if u put in comma, it failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I change to another approach:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;EscapeCharsMap:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MAPPING&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt; from, to&lt;BR /&gt; @,$&lt;BR /&gt; |,'&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;tt&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;MapSubString&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('EscapeCharsMap',&lt;BR /&gt;&amp;nbsp; 'num(100, @(=Replace(|$1|, |;|, |.|)) )'&lt;BR /&gt;&amp;nbsp; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This time, comma is working, but quote is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;can anybody have any solution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Jul 2017 19:19:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-escape-variable-parameter-with-both-quote-and-comma/m-p/1316329#M408649</guid>
      <dc:creator />
      <dc:date>2017-07-30T19:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to escape variable parameter with both quote and comma</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-escape-variable-parameter-with-both-quote-and-comma/m-p/1316330#M408650</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;May be try to use instead of a comma Chr(44)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 14:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-escape-variable-parameter-with-both-quote-and-comma/m-p/1316330#M408650</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-07-31T14:14:34Z</dc:date>
    </item>
  </channel>
</rss>

