<?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: nested variable troubles in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/nested-variable-troubles/m-p/1048010#M919550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like good workaround, but unfortunately Qlik has &lt;STRONG&gt;another bug&lt;/STRONG&gt; - it just doesn't parse such a expression:&lt;/P&gt;&lt;P&gt;=$(vAMTtoCODE(&lt;STRONG&gt;Replace('_ins ,text_',',','*'))&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;separate both parts of expression evaluate correctly,&lt;/P&gt;&lt;P&gt;Replace('_ins ,text_', ',' ,'*' )) turns to _ins *text_&lt;/P&gt;&lt;P&gt;and =$(vAMTtoCODE('to _ins *text_') show me&lt;/P&gt;&lt;P&gt;'some text to _ins *text_ and so on'&lt;/P&gt;&lt;P&gt;but when i write =$(vAMTtoCODE(Replace('&lt;EM&gt;_ins ,text_&lt;/EM&gt;', ',' ,'*' )))&lt;/P&gt;&lt;P&gt;it turned to&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Error: Error in expression: ')' expected"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;instead of * there can be any symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and - yes, text &lt;EM&gt;'_ins ,text_'&lt;/EM&gt; come from field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 May 2016 07:12:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-05-02T07:12:16Z</dc:date>
    <item>
      <title>nested variable troubles</title>
      <link>https://community.qlik.com/t5/QlikView/nested-variable-troubles/m-p/1048008#M919548</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;I have text object with text &lt;BR /&gt;&lt;STRONG&gt;=$(vAMTtoCODE('_ins text_'))&lt;/STRONG&gt;&lt;BR /&gt;And variable &lt;STRONG&gt;vAMTtoCODE&lt;/STRONG&gt; with value &lt;BR /&gt;&lt;EM&gt;'some text&lt;/EM&gt; ' &amp;amp; $1 &amp;amp;&lt;EM&gt;' and so on'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;so my text object show that text:&lt;BR /&gt;&lt;EM&gt;some text _ins text_ and so on&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;that's ok.&lt;/P&gt;&lt;P&gt;When I try to use in my text object text with comma - &lt;BR /&gt;&lt;STRONG&gt;=$(vAMTtoCODE('_ins&lt;SPAN style="color: #ff0000;"&gt;,&lt;/SPAN&gt; text_'))&lt;/STRONG&gt;&lt;BR /&gt;it fails and show "&lt;STRONG&gt;Error: Garbage after expression: 'on''&lt;/STRONG&gt;"! &lt;/P&gt;&lt;P&gt;I try to use that feature of nesting variable to deal with more neat expressions where I want use predefined variables with filters and so on, but there are many commas and it's turned so that I can't write really complicate expression due to that bag.&lt;BR /&gt;Is there any workaround? thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-variable-troubles/m-p/1048008#M919548</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: nested variable troubles</title>
      <link>https://community.qlik.com/t5/QlikView/nested-variable-troubles/m-p/1048009#M919549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this input coming from a field? May be try using replace function and then again replace it with comma in your final output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 16:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-variable-troubles/m-p/1048009#M919549</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-29T16:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: nested variable troubles</title>
      <link>https://community.qlik.com/t5/QlikView/nested-variable-troubles/m-p/1048010#M919550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems like good workaround, but unfortunately Qlik has &lt;STRONG&gt;another bug&lt;/STRONG&gt; - it just doesn't parse such a expression:&lt;/P&gt;&lt;P&gt;=$(vAMTtoCODE(&lt;STRONG&gt;Replace('_ins ,text_',',','*'))&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;separate both parts of expression evaluate correctly,&lt;/P&gt;&lt;P&gt;Replace('_ins ,text_', ',' ,'*' )) turns to _ins *text_&lt;/P&gt;&lt;P&gt;and =$(vAMTtoCODE('to _ins *text_') show me&lt;/P&gt;&lt;P&gt;'some text to _ins *text_ and so on'&lt;/P&gt;&lt;P&gt;but when i write =$(vAMTtoCODE(Replace('&lt;EM&gt;_ins ,text_&lt;/EM&gt;', ',' ,'*' )))&lt;/P&gt;&lt;P&gt;it turned to&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Error: Error in expression: ')' expected"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;instead of * there can be any symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and - yes, text &lt;EM&gt;'_ins ,text_'&lt;/EM&gt; come from field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 07:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-variable-troubles/m-p/1048010#M919550</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-02T07:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: nested variable troubles</title>
      <link>https://community.qlik.com/t5/QlikView/nested-variable-troubles/m-p/1048011#M919551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to replace it within the variable you will need another $-sign expansion like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(vAMTtoCODE('$(=&lt;STRONG&gt;Replace('_ins ,text_',',','*')'))&lt;/STRONG&gt;) // not tested this yet ... but the direction should be right one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but easier would be to replace only within the target variable and not by the call of the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for this issue is that the parser from the variable couldn't resolve the comma within the variable because it could not differ that the parameter should be only a simple string with commas instead of a parameter-delimiter. But if you replaced the comma with it's ascii-number it worked smoothly, see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= $(vAMTtoCODE('_ins' &amp;amp; chr(44) &amp;amp; 'text_'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm not sure if you really need this within a real scenario - I think you could create very complex nested constructions without the mandatory need to pass a comma within a parameter. Maybe you could share such a real case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2016 16:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-variable-troubles/m-p/1048011#M919551</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-05-02T16:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: nested variable troubles</title>
      <link>https://community.qlik.com/t5/QlikView/nested-variable-troubles/m-p/1048012#M919552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcus, thanks! &amp;amp; chr(44) &amp;amp; - that is what I need &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 07:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/nested-variable-troubles/m-p/1048012#M919552</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-03T07:03:15Z</dc:date>
    </item>
  </channel>
</rss>

