<?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 set the result of Load * statement into variable. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265406#M847613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guy!,&lt;/P&gt;&lt;P&gt;I am new to qlikview, I want to initialize the variable with the output of the Load * statement. The result of the load * statement is completely Json object. So I want to pass this variable into java script function I create. So Is there any way? Thanks.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157229_1.png" style="height: 327px; width: 620px;" /&gt;&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 set the result of Load * statement into variable.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265406#M847613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guy!,&lt;/P&gt;&lt;P&gt;I am new to qlikview, I want to initialize the variable with the output of the Load * statement. The result of the load * statement is completely Json object. So I want to pass this variable into java script function I create. So Is there any way? Thanks.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/157229_1.png" style="height: 327px; width: 620px;" /&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/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265406#M847613</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the result of Load * statement into variable.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265407#M847614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let yourvariable = peek('[',0,'Temp);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or something along those lines&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 11:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265407#M847614</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-23T11:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the result of Load * statement into variable.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265408#M847615</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Load *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field&amp;nbsp;&amp;nbsp;&amp;nbsp; // this should have a single value&lt;/P&gt;&lt;P&gt;from table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET Variable= peek('Field',0,'Table1');&amp;nbsp; // this will store the value from column 'Field' in 'Variable'&lt;/P&gt;&lt;P&gt;DROP Table Table1; //optional&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 06:48:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265408#M847615</guid>
      <dc:creator>aapurva09</dc:creator>
      <dc:date>2017-03-24T06:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the result of Load * statement into variable.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265409#M847616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Even I load into a Variable like this, I still cannot pass into my javascript function.&lt;/P&gt;&lt;P&gt;Function Cov(JsonData)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;When I call in Script&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Cov($(Variable))&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt; in this line it convert Variable into the Data I set (eg. Cov({"name":"A"...)). Then this line make me error.&lt;/P&gt;&lt;P&gt;Thanks Guys, I am finding another way...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 08:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265409#M847616</guid>
      <dc:creator />
      <dc:date>2017-03-24T08:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the result of Load * statement into variable.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265410#M847617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1- You've basically just copied my answer&lt;/P&gt;&lt;P&gt;2- you can clearly see the table and column names in the provided screenshot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 08:09:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265410#M847617</guid>
      <dc:creator>adamdavi3s</dc:creator>
      <dc:date>2017-03-24T08:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the result of Load * statement into variable.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265411#M847618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I mean is, the Compiler convert my Variable into the Data I set in runtime. Then it became syntax error.&lt;/P&gt;&lt;P&gt;you can try in Script Editor like this,&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;JavascriptFunction({"name":"A", "Value":1})&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;It will give u syntax error.&lt;/P&gt;&lt;P&gt;Thanks for ur reply bro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 08:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265411#M847618</guid>
      <dc:creator />
      <dc:date>2017-03-24T08:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the result of Load * statement into variable.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265412#M847619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to load it as string so that it looked like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;'JavascriptFunction({"name":"A", "Value":1})' as Field&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if you load it from a file it should go in this direction:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load concat(@1:n, chr(10), recno()) as Field from Source (txt, no labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after that you could transfer it into variable in the way Adam suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 09:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265412#M847619</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-03-24T09:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to set the result of Load * statement into variable.</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265413#M847620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bro, I will try it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Mar 2017 09:30:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-set-the-result-of-Load-statement-into-variable/m-p/1265413#M847620</guid>
      <dc:creator />
      <dc:date>2017-03-24T09:30:53Z</dc:date>
    </item>
  </channel>
</rss>

