<?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: Passing value of variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824010#M290321</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;You can use peek function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vAB=Peek(fieldname,0,tablename);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 11:45:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-31T11:45:21Z</dc:date>
    <item>
      <title>Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824003#M290314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a list box for countries.&lt;/P&gt;&lt;P&gt;I want to select one country and pass the name of country to database.&lt;/P&gt;&lt;P&gt;How can I do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Approach:&lt;/P&gt;&lt;P&gt;I am taking the currently selected Country into a variable vCountry = GetFieldSelections(Country)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This shows the value correctly in the text object as vCountry showing the value of currently selected country.&lt;/P&gt;&lt;P&gt;But when I want to pass it further, using $(vCountry), it still passes the value as '&lt;SPAN style="font-size: 13.3333330154419px;"&gt;GetFieldSelections(Country)' and not the actual selected country.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using LET in script but still it didnt work, how can I set it to StringContent.&lt;/P&gt;&lt;P&gt;I dont want to use macro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help, thanks in advance&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swapneel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 08:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824003#M290314</guid>
      <dc:creator />
      <dc:date>2015-03-31T08:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824004#M290315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is it you do when you "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;pass the name of country to database&lt;/SPAN&gt;"?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 09:36:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824004#M290315</guid>
      <dc:creator>Ralf-Narfeldt</dc:creator>
      <dc:date>2015-03-31T09:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824005#M290316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you are trying to do here, but the variable definition should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;=GetFieldSelections(Country)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;where the = is part of the definition. Now $(vCountry) will return the selection.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In a set statement&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;Set &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vCountry&lt;/SPAN&gt; = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=GetFieldSelections(Country)&lt;/SPAN&gt;;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(the = = is not a typo)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Jonathan&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 09:45:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824005#M290316</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-03-31T09:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824006#M290317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swapneel, you can use:&lt;/P&gt;&lt;P&gt;SET vCountry = "=GetFieldSelections(Country)";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 09:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824006#M290317</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-03-31T09:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824007#M290318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben Marin,&lt;/P&gt;&lt;P&gt;Thanks for the quick reply but, the solution is not working,&lt;/P&gt;&lt;P&gt;plz find the attached images for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Swapneel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:39:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824007#M290318</guid>
      <dc:creator />
      <dc:date>2015-03-31T11:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824008#M290319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jonathan dienst,&lt;/P&gt;&lt;P&gt;thanks for replying, but it didnt work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;I am attaching the images for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swapneel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824008#M290319</guid>
      <dc:creator />
      <dc:date>2015-03-31T11:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824009#M290320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to achieve dynamic loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swapneel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:41:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824009#M290320</guid>
      <dc:creator />
      <dc:date>2015-03-31T11:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824010#M290321</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;You can use peek function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vAB=Peek(fieldname,0,tablename);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824010#M290321</guid>
      <dc:creator />
      <dc:date>2015-03-31T11:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824011#M290322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swapneel, GetFieldSelections() won't work in script, in this case you should do a FOR bucle, ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR i =0 to NoOfRows('tablesList')-1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vTable=Peek('Tables', $(i), 'tablesList');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT * FROM [DEVS_ID.$(vTable)];&lt;/P&gt;&lt;P&gt;NEXT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will load all your tables wich most probably will return a mess of tables. Only way I see this working is if all the tables returned in tablesList have the same fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are you trying to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824011#M290322</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-03-31T11:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824012#M290323</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;How your trying to read? that is user will make the selection in the front end of your dashboard and then your trying to push this to DB? if so your variable set should work. But if your trying to capture in the script then we need to think how your doing....can you please answer my questions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:52:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824012#M290323</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-03-31T11:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824013#M290324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben Marin,&lt;/P&gt;&lt;P&gt;Thanks for that piece of knowledge &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;What I want to do is perform a selective load of only a table that I select.&lt;/P&gt;&lt;P&gt;Where I am stuck at is, I am not able to pass the name of table in string format, its taking directly the formula,&lt;/P&gt;&lt;P&gt;I need something like &lt;STRONG&gt;variableName.Content.GetString&lt;/STRONG&gt; &amp;amp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;variableName.Content.SetString&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to do this in scripting, so that I dont need macro.&lt;/P&gt;&lt;P&gt;Hope you can help or atleast provide me with an answer as above explaination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Swapneel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:54:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824013#M290324</guid>
      <dc:creator />
      <dc:date>2015-03-31T11:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824014#M290325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Avinash R,&lt;/P&gt;&lt;P&gt;My vision is as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the front end I am having a list of tables, from which the user can select a table.&lt;/P&gt;&lt;P&gt;This currently selected table should be stored in a variable say vTable,&lt;/P&gt;&lt;P&gt;This vTable variable should be passed in the SQL select command&lt;/P&gt;&lt;P&gt;as Select * from $(vTable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats how I want it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Swapneel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 11:57:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824014#M290325</guid>
      <dc:creator />
      <dc:date>2015-03-31T11:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824015#M290326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the details , Please check with the below document . As per my knowledge it cannot be achieve at the scipt level using your approach . Need go with macro or extension .&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-5970"&gt;SQL Writeback from QlikView extension object.&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 12:02:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824015#M290326</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-03-31T12:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824016#M290327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swapneel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add a trigger that sets the varaiable value when a Table is selected, then you can use this variable in script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is create predefined values for this variable and add an input box where user selects in the list the value that the variable will store, variable properties can be those:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/82497_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 13:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824016#M290327</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-03-31T13:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Passing value of variable</title>
      <link>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824017#M290328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your precious support everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I finally had no option, but to go for the macro approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again, you all have been quick at replies. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;Definately count worthy people. &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;Thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Swapneel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 09:23:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Passing-value-of-variable/m-p/824017#M290328</guid>
      <dc:creator />
      <dc:date>2015-04-01T09:23:41Z</dc:date>
    </item>
  </channel>
</rss>

