<?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 Store variable value into an external qvs file and use them in load script of another qlikview file. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Store-variable-value-into-an-external-qvs-file-and-use-them-in/m-p/459250#M485305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know how can I store value of a variable (that is provided by user through some input box on front end), into a qvs file in the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set parameter1 = $(variable1)&lt;/P&gt;&lt;P&gt;set parameter2 = $(variable2)...and so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that I can read this qvs file from load script of another qlikview file and use the parameter values to modify my data load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Apr 2013 14:14:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-16T14:14:48Z</dc:date>
    <item>
      <title>Store variable value into an external qvs file and use them in load script of another qlikview file.</title>
      <link>https://community.qlik.com/t5/QlikView/Store-variable-value-into-an-external-qvs-file-and-use-them-in/m-p/459250#M485305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to know how can I store value of a variable (that is provided by user through some input box on front end), into a qvs file in the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set parameter1 = $(variable1)&lt;/P&gt;&lt;P&gt;set parameter2 = $(variable2)...and so on..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that I can read this qvs file from load script of another qlikview file and use the parameter values to modify my data load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 14:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-variable-value-into-an-external-qvs-file-and-use-them-in/m-p/459250#M485305</guid>
      <dc:creator />
      <dc:date>2013-04-16T14:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Store variable value into an external qvs file and use them in load script of another qlikview file.</title>
      <link>https://community.qlik.com/t5/QlikView/Store-variable-value-into-an-external-qvs-file-and-use-them-in/m-p/459251#M485306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this is not possible ... but you can write it in txt-files and load it as include-variable in other qvw. You needed a trigger on the variable, which run by change and triggered a macro like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public sub Write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dim fso, File, FilePfad, FileName, varName, varValue &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;varValue= ActiveDocument.Variables("vValue").GetContent.String&lt;/P&gt;&lt;P&gt;varName= ActiveDocument.Variables("vName").GetContent.String&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set fso = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;Set File = fso.OpenTextFile(FilePfad &amp;amp; FileName, 2, true)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;File.Writeline "let " &amp;amp; varName &amp;amp; " = '" &amp;amp; varValue &amp;amp; "';"&lt;/P&gt;&lt;P&gt;File.Close&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Set fso = Nothing&lt;/P&gt;&lt;P&gt;Set File = Nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variablen-load:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;$(Include=&lt;/SPAN&gt;FilePfadFileName&lt;SPAN class="Bold"&gt;.txt);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;- Marcus&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 14:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Store-variable-value-into-an-external-qvs-file-and-use-them-in/m-p/459251#M485306</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2013-04-17T14:23:07Z</dc:date>
    </item>
  </channel>
</rss>

