<?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 scripting question assign variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624486#M681591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following:&lt;/P&gt;&lt;P&gt;a variable defined in the script: set vLanguage '=Language';&lt;/P&gt;&lt;P&gt;a variable vProduct defined with the menu options 'settings varaibale overview'&amp;nbsp; =chr(91)&amp;amp;'Product' &amp;amp;chr(95) &amp;amp; '$(vLanguage)' &amp;amp; chr(93)&lt;/P&gt;&lt;P&gt;This all works works fine and gives me the result I am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I am curious how to add the variable vProduct in the script.&lt;/P&gt;&lt;P&gt;set vLanguage = '=Language';&lt;/P&gt;&lt;P&gt;set vProduct = =chr(91)&amp;amp;'Product' &amp;amp;chr(95) &amp;amp; '$(vLanguage)' &amp;amp; chr(93);&lt;/P&gt;&lt;P&gt;The result here is in the variable vProduct:&amp;nbsp; =chr(91)&amp;amp;'Product' &amp;amp;chr(95) &amp;amp; '=Language' &amp;amp; chr(93)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: How to write the script in such a way that the variable vProduct is equal to : =chr(91)&amp;amp;'Product' &amp;amp;chr(95) &amp;amp; '$(vLanguage)' &amp;amp; chr(93)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 10:16:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-26T10:16:05Z</dc:date>
    <item>
      <title>scripting question assign variable</title>
      <link>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624486#M681591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following:&lt;/P&gt;&lt;P&gt;a variable defined in the script: set vLanguage '=Language';&lt;/P&gt;&lt;P&gt;a variable vProduct defined with the menu options 'settings varaibale overview'&amp;nbsp; =chr(91)&amp;amp;'Product' &amp;amp;chr(95) &amp;amp; '$(vLanguage)' &amp;amp; chr(93)&lt;/P&gt;&lt;P&gt;This all works works fine and gives me the result I am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I am curious how to add the variable vProduct in the script.&lt;/P&gt;&lt;P&gt;set vLanguage = '=Language';&lt;/P&gt;&lt;P&gt;set vProduct = =chr(91)&amp;amp;'Product' &amp;amp;chr(95) &amp;amp; '$(vLanguage)' &amp;amp; chr(93);&lt;/P&gt;&lt;P&gt;The result here is in the variable vProduct:&amp;nbsp; =chr(91)&amp;amp;'Product' &amp;amp;chr(95) &amp;amp; '=Language' &amp;amp; chr(93)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: How to write the script in such a way that the variable vProduct is equal to : =chr(91)&amp;amp;'Product' &amp;amp;chr(95) &amp;amp; '$(vLanguage)' &amp;amp; chr(93)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624486#M681591</guid>
      <dc:creator />
      <dc:date>2014-03-26T10:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question assign variable</title>
      <link>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624487#M681592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vProduct = chr(91)&amp;amp;'Product' &amp;amp;chr(95) &amp;amp; '$(vLanguage)' &amp;amp; chr(93);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624487#M681592</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-26T10:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question assign variable</title>
      <link>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624488#M681593</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;LET vProduct = '=chr(91)&amp;amp;'&amp;amp;chr(39)&amp;amp;'Product' &amp;amp; chr(39) &amp;amp; ' &amp;amp; chr(95) &amp;amp; '&amp;amp; chr(39)&amp;amp; CHR(36) &amp;amp;'(vLanguage)' &amp;amp; chr(39) &amp;amp; ' &amp;amp; chr(93)';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624488#M681593</guid>
      <dc:creator>daveamz</dc:creator>
      <dc:date>2014-03-26T10:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question assign variable</title>
      <link>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624489#M681594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;The result here is: [Product_=Language]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Unfortunaltely not the outcome I am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Thanks&lt;/P&gt;&lt;P class="jive-thread-reply-btn" style="margin: 26px 0 -10px; font-size: 0.9em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-correct" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/112053" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-family: inherit; color: #3778c7; background-color: #f3f3f3;"&gt;scripting question assign variable&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624489#M681594</guid>
      <dc:creator />
      <dc:date>2014-03-26T10:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question assign variable</title>
      <link>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624490#M681595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As an aside;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set&lt;/STRONG&gt;: Assigns the value (or expression which is after the equal sign) as it is without compututation. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let&lt;/STRONG&gt;: Calculates the expression assigned to it and sets the expression result to the variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;BR /&gt;&lt;SPAN style="text-decoration: underline;"&gt;Example&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Set&lt;/STRONG&gt; vMyVar=2+3;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vMyVar has the expression 2+3 as value we have to compute it using $(vMyVar) which returns 5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Let&lt;/STRONG&gt; vMyVar=2+3;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vMyVar has the &lt;EM&gt;&lt;STRONG&gt;computed&lt;/STRONG&gt;&lt;/EM&gt; value 5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 10:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624490#M681595</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2014-03-26T10:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: scripting question assign variable</title>
      <link>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624491#M681596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution works fine.&lt;/P&gt;&lt;P&gt;It's still a bit hard to understand what exactly is happening but I am working on that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gerrit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 11:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/scripting-question-assign-variable/m-p/624491#M681596</guid>
      <dc:creator />
      <dc:date>2014-03-26T11:30:17Z</dc:date>
    </item>
  </channel>
</rss>

