<?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 custom default  (aka environment) variables ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/custom-default-aka-environment-variables/m-p/200695#M59131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't open your document with my Persinal Edition. But I guess that you have some VBscrupt stuff that go though the loaded table and put field values into new variables via CreateVarable-&amp;gt;SetContent API methods. Right? It is essentially I meant mentioning VBscript way. I couldn't find ImportVars that imported variables from text file in the QV10 API. But obviosly it is possible to replace it with VBscrip using CreateVarable-&amp;gt;SetContent&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Nov 2010 17:58:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-11-24T17:58:47Z</dc:date>
    <item>
      <title>custom default  (aka environment) variables ?</title>
      <link>https://community.qlik.com/t5/QlikView/custom-default-aka-environment-variables/m-p/200693#M59129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to have custom default (aka environment) variables additionally in desktop QV? Meaning that these variables will be avilable by default in all documents like the number interpretation variables. Can I add my custom variables into the set of the "number interpretation" variables, so it would be inserted into load scripts by default?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I known that there is API function to import variables from a file. Bu I couldn't find how to have "default" macros that would be run at every document load/creation...It is diffrent but related problem, to have default VBscript function library....That apperently is the way to go. For each new QV file , manually add VBscript code to include extrenal VBscript file and ExecuteGlobal its content. It will provide custom VBS functions and variables(?)&lt;/P&gt;&lt;P&gt;Any suggestions/comments would be appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 16:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/custom-default-aka-environment-variables/m-p/200693#M59129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-24T16:29:06Z</dc:date>
    </item>
    <item>
      <title>custom default  (aka environment) variables ?</title>
      <link>https://community.qlik.com/t5/QlikView/custom-default-aka-environment-variables/m-p/200694#M59130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey recently I've done something similar. I load an external excel full with variables and when you load them into a QV file, they turn into document variables.&lt;/P&gt;&lt;P&gt;Very useful to show/ hide stuff, or maybe customize the document. I'm currently using it to put financial variables of my customers.&lt;/P&gt;&lt;P&gt;Here's the link :&lt;/P&gt;&lt;P&gt;http://community.qlik.com/media/p/139678.aspx&lt;/P&gt;&lt;P&gt;I hope it helps!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 17:34:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/custom-default-aka-environment-variables/m-p/200694#M59130</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-11-24T17:34:26Z</dc:date>
    </item>
    <item>
      <title>custom default  (aka environment) variables ?</title>
      <link>https://community.qlik.com/t5/QlikView/custom-default-aka-environment-variables/m-p/200695#M59131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marcel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't open your document with my Persinal Edition. But I guess that you have some VBscrupt stuff that go though the loaded table and put field values into new variables via CreateVarable-&amp;gt;SetContent API methods. Right? It is essentially I meant mentioning VBscript way. I couldn't find ImportVars that imported variables from text file in the QV10 API. But obviosly it is possible to replace it with VBscrip using CreateVarable-&amp;gt;SetContent&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Nov 2010 17:58:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/custom-default-aka-environment-variables/m-p/200695#M59131</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-24T17:58:47Z</dc:date>
    </item>
    <item>
      <title>custom default  (aka environment) variables ?</title>
      <link>https://community.qlik.com/t5/QlikView/custom-default-aka-environment-variables/m-p/200696#M59132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK Vladimir, I'll show you how it works.&lt;/P&gt;&lt;P&gt;I have an excel sheet that has variables like this&lt;/P&gt;&lt;P&gt;variable, valor&lt;/P&gt;&lt;P&gt;var1 1&lt;/P&gt;&lt;P&gt;var2 0&lt;/P&gt;&lt;P&gt;var3 1&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;and inside the script of the QV document I do something like this :&lt;/P&gt;&lt;P&gt;(What I do is loading the excel in a table called "VariablesConfig" and then I do a peek() to get the name of the variable and their value and I put it into variables of the QV document).&lt;/P&gt;&lt;P&gt;VariablesConfig :&lt;BR /&gt;&lt;BR /&gt;LOAD variable,&lt;BR /&gt; valor&lt;BR /&gt;&lt;BR /&gt;FROM&lt;BR /&gt;[variablesConfig.xls]&lt;BR /&gt;(biff, embedded labels, table is Hoja1$);&lt;BR /&gt;&lt;BR /&gt;Let vNroRegistros = NoOfRows('VariablesConfig');&lt;BR /&gt;For vI = 0 to (vNroRegistros - 1)&lt;BR /&gt; Let vNombre_Variable = Peek('variable',vI,'VariablesConfig');&lt;BR /&gt; Let [$(vNombre_Variable)] = Peek('valor',vI,'VariablesConfig');&lt;BR /&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!!&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Nov 2010 10:41:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/custom-default-aka-environment-variables/m-p/200696#M59132</guid>
      <dc:creator>marcel_olmo</dc:creator>
      <dc:date>2010-11-26T10:41:08Z</dc:date>
    </item>
  </channel>
</rss>

