<?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 display a variable's original string value with a single quote and/or a variable $ placeholder in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-display-a-variable-s-original-string-value-with-a-single/m-p/1773840#M59925</link>
    <description>&lt;P&gt;May be try like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Set myVar1 = 'this var contains a single quote ' &amp;amp; Chr(39) &amp;amp; ' character.';
Set myVar2 = 'this var contains a ' &amp;amp; Chr(36) &amp;amp; '(anotherVar) placeholder.';

= 'The string value of myVar1 is: ' &amp;amp; '$(myVar1)'
= 'The string value of myVar2 is: ' &amp;amp; '$(myVar2)'&lt;/LI-CODE&gt;&lt;P&gt;Or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Set myVar1 = 'this var contains a single quote ' &amp;amp; Chr(39) &amp;amp; ' character.';
Set myVar2 = 'this var contains a @(anotherVar) placeholder.';

Let myVar3 = Replace(myVar2,'@','$');

= 'The string value of myVar1 is: ' &amp;amp; '$(myVar1)'
= 'The string value of myVar2 is: ' &amp;amp; '$(myVar3)'&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 12 Jan 2021 19:35:13 GMT</pubDate>
    <dc:creator>Saravanan_Desingh</dc:creator>
    <dc:date>2021-01-12T19:35:13Z</dc:date>
    <item>
      <title>How to display a variable's original string value with a single quote and/or a variable $ placeholder</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-display-a-variable-s-original-string-value-with-a-single/m-p/1773813#M59923</link>
      <description>&lt;P&gt;I define following variables:&lt;BR /&gt;Let myVar1 = 'this var contains a single quote ' &amp;amp; Chr(39) &amp;amp; ' character.';&lt;BR /&gt;Let myVar2 = 'this var contains a &lt;SPAN&gt;' &amp;amp; Chr(36) &amp;amp; '(anotherVar) placeholder.';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Then the resulting string value of myVar1 will be:&lt;BR /&gt;&lt;EM&gt;this var contains a single quote ' character.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And the resulting string value of myVar2 will be:&lt;BR /&gt;&lt;EM&gt;this var contains a $(anotherVar) placeholder.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So far, so good.&lt;/P&gt;&lt;P&gt;Now I want to&amp;nbsp;display the variables string value as information for the user in a qlik sense app (for example in an text &amp;amp; image visualization). The result should be&amp;nbsp;exacly as the var string values above with the single quote an the not replaced $(anotherVar) expression, something like this:&lt;BR /&gt;&lt;BR /&gt;The string value of myVar1 is:&amp;nbsp;&lt;EM&gt;this var contains a single quote ' character.&lt;BR /&gt;&lt;/EM&gt;The string value of myVar2 is: &lt;EM&gt;this var contains a $(anotherVar) placeholder.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The following (of course) does not work:&lt;/P&gt;&lt;P&gt;= 'The string value of myVar1 is: ' &amp;amp; '$(myVar1)'&lt;BR /&gt;= 'The string value of myVar2 is: ' &amp;amp; '$(myVar2)'&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;I've looked intensively but did not found any way to do this.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any solution?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 17:40:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-display-a-variable-s-original-string-value-with-a-single/m-p/1773813#M59923</guid>
      <dc:creator>Thomas_Spitzer</dc:creator>
      <dc:date>2021-01-12T17:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a variable's original string value with a single quote and/or a variable $ placeholder</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-display-a-variable-s-original-string-value-with-a-single/m-p/1773840#M59925</link>
      <description>&lt;P&gt;May be try like this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Set myVar1 = 'this var contains a single quote ' &amp;amp; Chr(39) &amp;amp; ' character.';
Set myVar2 = 'this var contains a ' &amp;amp; Chr(36) &amp;amp; '(anotherVar) placeholder.';

= 'The string value of myVar1 is: ' &amp;amp; '$(myVar1)'
= 'The string value of myVar2 is: ' &amp;amp; '$(myVar2)'&lt;/LI-CODE&gt;&lt;P&gt;Or&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Set myVar1 = 'this var contains a single quote ' &amp;amp; Chr(39) &amp;amp; ' character.';
Set myVar2 = 'this var contains a @(anotherVar) placeholder.';

Let myVar3 = Replace(myVar2,'@','$');

= 'The string value of myVar1 is: ' &amp;amp; '$(myVar1)'
= 'The string value of myVar2 is: ' &amp;amp; '$(myVar3)'&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 12 Jan 2021 19:35:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-display-a-variable-s-original-string-value-with-a-single/m-p/1773840#M59925</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-01-12T19:35:13Z</dc:date>
    </item>
  </channel>
</rss>

