<?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: Formula in a Script Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formula-in-a-Script-Variable/m-p/1315384#M618484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did it like you suggested, without '' (comma)&amp;nbsp; and with the SET command. It works in the frontend with a textbox with =&lt;STRONG&gt;&lt;EM style="color: #808080; font-family: Helvetica;"&gt;vL.FieldSelection_Plus1 &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-family: Helvetica;"&gt;Very strange, I thought SET is not computing ... and would need $(), but somehow it works without...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Apr 2017 13:03:54 GMT</pubDate>
    <dc:creator>chriys1337</dc:creator>
    <dc:date>2017-04-25T13:03:54Z</dc:date>
    <item>
      <title>Formula in a Script Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-a-Script-Variable/m-p/1315381#M618481</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;I am trying to put a&amp;nbsp; formula into a Variable (in the script), but the generator puts out an Script Line Error:&lt;/P&gt;&lt;P&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;vL.FieldSelection_Plus1&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;='=if(right(GetFieldSelections(Selection),2)= '51' or right(GetFieldSelections(Selection),2)= '52', left(GetFieldSelections(Selection),4)+1 &amp;amp;'01',GetFieldSelections(Selection)+1)'; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// 2. Kickout, -2 to +1 from Selection&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;In a Textbox this script works, but how to put it in a variable in the script?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I am happy for any hint. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Kind Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt;Chris&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 12:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-a-Script-Variable/m-p/1315381#M618481</guid>
      <dc:creator>chriys1337</dc:creator>
      <dc:date>2017-04-25T12:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Formula in a Script Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-a-Script-Variable/m-p/1315382#M618482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LET&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;vL.FieldSelection_Plus1 &lt;/EM&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;= if(right(GetFieldSelections(Selection),2)= '51' or right(GetFieldSelections(Selection),2)= '52', left(GetFieldSelections(Selection),4)+1 &amp;amp;'01',GetFieldSelections(Selection)+1);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Then create text object and use $(&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;vL.FieldSelection_Plus1&lt;/EM&gt;&lt;/SPAN&gt;) and then see&lt;STRONG&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 12:18:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-a-Script-Variable/m-p/1315382#M618482</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-04-25T12:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Formula in a Script Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-a-Script-Variable/m-p/1315383#M618483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try with SET instead of LET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 10.6667px; font-family: inherit;"&gt;SET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;vL.FieldSelection_Plus1 &lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;= =if(right(GetFieldSelections(Selection),2)= '51' or right(GetFieldSelections(Selection),2)= '52', left(GetFieldSelections(Selection),4)+1 &amp;amp;'01',GetFieldSelections(Selection)+1);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 12:18:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-a-Script-Variable/m-p/1315383#M618483</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-04-25T12:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Formula in a Script Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Formula-in-a-Script-Variable/m-p/1315384#M618484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did it like you suggested, without '' (comma)&amp;nbsp; and with the SET command. It works in the frontend with a textbox with =&lt;STRONG&gt;&lt;EM style="color: #808080; font-family: Helvetica;"&gt;vL.FieldSelection_Plus1 &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080; font-family: Helvetica;"&gt;Very strange, I thought SET is not computing ... and would need $(), but somehow it works without...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formula-in-a-Script-Variable/m-p/1315384#M618484</guid>
      <dc:creator>chriys1337</dc:creator>
      <dc:date>2017-04-25T13:03:54Z</dc:date>
    </item>
  </channel>
</rss>

