<?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: Variables in script + user input box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125879#M919057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A new drop down selection? in vDate1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2016 17:19:31 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-11T17:19:31Z</dc:date>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125874#M919052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would now like to use the variable (vDate3) and load it during the load script in a table (whilst still being able to update via input box), creating a formula similar to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Number - $(vDate3) as Number2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although am having issues - have attached a doc for "clarity?"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Rich&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;vDate1&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 0;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Set&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vDate2&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 5;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Set&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;vDate3&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;= '=vDate1 + vDate2';&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// &amp;lt;&amp;lt; updates when user makes selection in input box&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; TempData:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Number&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; - '=(vDate3)' &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Number2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;// &amp;lt;&amp;lt;- how to update to have live value taken from interface/input box as per above&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Data;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;drop&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; Data; &lt;/SPAN&gt;&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/Re-Variables-in-script-user-input-box/m-p/1125874#M919052</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125875#M919053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vDate1 = 0;&lt;/P&gt;&lt;P&gt;Set vDate2 = 5;&lt;/P&gt;&lt;P&gt;Let vDate3= rangesum($(vDate1),$(vDate2));&amp;nbsp; // &amp;lt;&amp;lt; updates when user makes selection in input box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempData:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;Number - $(vDate3) as Number2&amp;nbsp; // &amp;lt;&amp;lt;- how to update to have live value taken from interface/input box as per above&lt;/P&gt;&lt;P&gt;resident Data;&lt;/P&gt;&lt;P&gt;drop table Data;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 16:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125875#M919053</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-05-11T16:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125876#M919054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace the below line:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Number&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; - '=(vDate3)' &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;as&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;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;Number2&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #008000;"&gt;// &amp;lt;&amp;lt;- how to update to have live value taken from interface/input box as per above&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the below :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Number - $(vDate3) as Number2 &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 16:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125876#M919054</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-05-11T16:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125877#M919055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have added a trigger instead of using the variable definition to set the value for vDate3. See if this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 16:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125877#M919055</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-11T16:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125878#M919056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for review - unfortunately it the trigger doesn't appear to update following a new drop down selection..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gysbert / Thirumala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when scripted as follows, this hardcodes the result of vDate3 in the table (ignoring "future" input box selections)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Number - $(vDate3) as Number2 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:17:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125878#M919056</guid>
      <dc:creator />
      <dc:date>2016-05-11T17:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125879#M919057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A new drop down selection? in vDate1?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:19:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125879#M919057</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-11T17:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125880#M919058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to be working for me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125880#M919058</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-11T17:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125881#M919059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your patience - using your example, when reloading the doc - all is well...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the value in the input box (vDate1) is adjusted, the "Number2" in table (in red) appears to remain as before / per the reload&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the case for you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125881#M919059</guid>
      <dc:creator />
      <dc:date>2016-05-11T17:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125882#M919060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I see the number changing at my end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made some changes in the script als0:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;//let vDate1 = 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;//Set vDate2 = 5;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;//Set vDate3= '=vDate1 + vDate2';&amp;nbsp; // &amp;lt;&amp;lt; updates when user makes selection in input box&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TempData:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Number - $(vDate3) as Number2&amp;nbsp; // &amp;lt;&amp;lt;- how to update to have live value taken from interface/input box as per above&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;resident Data;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;drop table Data;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//rename table TempData to Data;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125882#M919060</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-11T17:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125883#M919061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&amp;nbsp; I see "vDate3" updates on new selection - although "Number2" remains as is?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I change so I see what you see (ie ensured I saved doc to my pc etc..)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125883#M919061</guid>
      <dc:creator />
      <dc:date>2016-05-11T17:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125884#M919062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh so just by changing the variable (and without reloading) you are expecting the number2 column to update? That is not going to happen. You def. need to refresh the application to make this to work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:51:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125884#M919062</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-11T17:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125885#M919063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ah ok &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time (will use set analysis &amp;amp; variables - was hoping to move part to the script if possible)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 17:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125885#M919063</guid>
      <dc:creator />
      <dc:date>2016-05-11T17:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125886#M919064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached application,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The changes are getting reflected when you change the input box value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Uva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 23:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125886#M919064</guid>
      <dc:creator />
      <dc:date>2016-05-11T23:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variables in script + user input box</title>
      <link>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125887#M919065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached application,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The changes are getting reflected when you change the input box value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Uva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 11:17:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Re-Variables-in-script-user-input-box/m-p/1125887#M919065</guid>
      <dc:creator />
      <dc:date>2016-05-12T11:17:49Z</dc:date>
    </item>
  </channel>
</rss>

