<?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 Setting a variable from file in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184644#M504346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;I figured a solution out.&lt;/P&gt;&lt;P&gt;I made a new variable called 'var_temp' which will hold the variables name first, then use this to assign the value&lt;/P&gt;&lt;P&gt;let var_temp = peek('Variable', 0, Tvariable );&lt;BR /&gt;let $(var_temp) = peek('Expression', 0, Tvariable );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next for me is to make a loop to read from row 0 to the EOF &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Dec 2009 20:27:53 GMT</pubDate>
    <dc:creator>peter_turner</dc:creator>
    <dc:date>2009-12-11T20:27:53Z</dc:date>
    <item>
      <title>Setting a variable from file</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184640#M504342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I need to figure out how to load some defaults into my variables from a file.&lt;/P&gt;&lt;P&gt;The idea is i have a Defaults.ini file which is tab delimited.&lt;BR /&gt;The file has the variable and then the expression i want to store into it.&lt;BR /&gt;Some expressions would be just text but others might be functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far i have a load of the data&lt;/P&gt;&lt;P&gt;Directory;&lt;BR /&gt;LOAD variable,&lt;BR /&gt; expression&lt;BR /&gt;FROM&lt;BR /&gt;Defaults.ini&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;P&gt;But now i need to assign the variable with the expression, any ideas?&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 19:02:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184640#M504342</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-12-11T19:02:03Z</dc:date>
    </item>
    <item>
      <title>Setting a variable from file</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184641#M504343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;Here you are a possible solution.&lt;/P&gt;&lt;P&gt;I hope this help you.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 19:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184641#M504343</guid>
      <dc:creator />
      <dc:date>2009-12-11T19:18:28Z</dc:date>
    </item>
    <item>
      <title>Setting a variable from file</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184642#M504344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your fast reply.&lt;BR /&gt;i would like to replace the var1 with a 'peek' for the variable name instead, but i'm having trouble with the command.&lt;/P&gt;&lt;P&gt;let var1 = peek('Expression', 0, Tvariable ); is OK&lt;/P&gt;&lt;P&gt;I want to change the command to:&lt;BR /&gt;let peek('Variable', 0, Tvariable )=peek( 'Expression', 0, Tvariable ); = Script line error.&lt;/P&gt;&lt;P&gt;I have also tryed using the evaluate() function, and Let or Set.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 20:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184642#M504344</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-12-11T20:03:55Z</dc:date>
    </item>
    <item>
      <title>Setting a variable from file</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184643#M504345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;As far as I know, that is impossible, you can't create / define a variable as result of a expression.&lt;/P&gt;&lt;P&gt;Sorry.&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 20:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184643#M504345</guid>
      <dc:creator />
      <dc:date>2009-12-11T20:08:41Z</dc:date>
    </item>
    <item>
      <title>Setting a variable from file</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184644#M504346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;I figured a solution out.&lt;/P&gt;&lt;P&gt;I made a new variable called 'var_temp' which will hold the variables name first, then use this to assign the value&lt;/P&gt;&lt;P&gt;let var_temp = peek('Variable', 0, Tvariable );&lt;BR /&gt;let $(var_temp) = peek('Expression', 0, Tvariable );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next for me is to make a loop to read from row 0 to the EOF &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Peter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 20:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184644#M504346</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2009-12-11T20:27:53Z</dc:date>
    </item>
    <item>
      <title>Setting a variable from file</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184645#M504347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;Smart solution. You've got !!&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Dec 2009 20:31:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184645#M504347</guid>
      <dc:creator />
      <dc:date>2009-12-11T20:31:30Z</dc:date>
    </item>
    <item>
      <title>Setting a variable from file</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184646#M504348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I successfully tested this script to support maintaining change control between our development, quality and production environments where an external reference provides the NAS folder reference.&lt;/P&gt;&lt;P&gt;However, for some reason when I attempt to use the exact same script after a binary load it does not appear to function correctly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas or suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Mar 2010 23:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184646#M504348</guid>
      <dc:creator>jbeierschmitt</dc:creator>
      <dc:date>2010-03-18T23:53:17Z</dc:date>
    </item>
    <item>
      <title>Setting a variable from file</title>
      <link>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184647#M504349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;User error - the table I used to create the variables did not get dropped so it was part of the binary load.&lt;/P&gt;&lt;P&gt;Once I dropped that table the script worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 00:30:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Setting-a-variable-from-file/m-p/184647#M504349</guid>
      <dc:creator>jbeierschmitt</dc:creator>
      <dc:date>2010-03-19T00:30:12Z</dc:date>
    </item>
  </channel>
</rss>

