<?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 how to use variables in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-use-variables-in-script/m-p/1109818#M904768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;am created two input boxes with two variables n,n1&lt;/P&gt;&lt;P&gt;how to use the evaluate() in script&lt;/P&gt;&lt;P&gt;to add two variables and disply in front end&lt;/P&gt;&lt;P&gt;is it possible&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>how to use variables in script</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-variables-in-script/m-p/1109818#M904768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;am created two input boxes with two variables n,n1&lt;/P&gt;&lt;P&gt;how to use the evaluate() in script&lt;/P&gt;&lt;P&gt;to add two variables and disply in front end&lt;/P&gt;&lt;P&gt;is it possible&lt;/P&gt;&lt;P&gt;thanks in advance&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/how-to-use-variables-in-script/m-p/1109818#M904768</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to use variables in script</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-variables-in-script/m-p/1109819#M904769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hari, you can retrieve the content of the variables using $(VariableName).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this will retrieve the content of the variable, not the result, so for example if you have a variable name vMaxYear, and the user sets &lt;STRONG&gt;2016&lt;/STRONG&gt; as the content you can use this in script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT &lt;EM&gt;fields&lt;/EM&gt; FROM &lt;EM&gt;table &lt;/EM&gt;WHERE &lt;EM&gt;YearField&lt;/EM&gt;&amp;lt;=&lt;STRONG&gt;$(vMaxYear)&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;// Is converted to: &lt;SPAN style="font-size: 13.3333px;"&gt;SELECT &lt;/SPAN&gt;&lt;EM style="font-size: 13.3333px;"&gt;fields&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; FROM &lt;/SPAN&gt;&lt;EM style="font-size: 13.3333px;"&gt;table &lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;WHERE &lt;/SPAN&gt;&lt;EM style="font-size: 13.3333px;"&gt;YearField&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;=&lt;STRONG&gt;2016&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if the user set as variable content &lt;STRONG&gt;=Max(Year)&lt;/STRONG&gt;, in front-end you can see the variable as 2016, but in script it will return an error in the previous example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;// Is converted to: &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SELECT &lt;/SPAN&gt;&lt;EM style="font-size: 13.3333px;"&gt;fields&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; FROM &lt;/SPAN&gt;&lt;EM style="font-size: 13.3333px;"&gt;table &lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;WHERE &lt;/SPAN&gt;&lt;EM style="font-size: 13.3333px;"&gt;YearField&lt;/EM&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;lt;=&lt;STRONG style="font-size: 13.3333px;"&gt;=Max(Year)&lt;/STRONG&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 12:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-variables-in-script/m-p/1109819#M904769</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2016-06-24T12:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to use variables in script</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-use-variables-in-script/m-p/1109820#M904770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you ruben&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jun 2016 12:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-use-variables-in-script/m-p/1109820#M904770</guid>
      <dc:creator />
      <dc:date>2016-06-24T12:29:24Z</dc:date>
    </item>
  </channel>
</rss>

