<?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: Variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables/m-p/632287#M1091763</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 extract the variables using a script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let zFileName = 'C:\Projects\Project1\Model.qvw';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;VariableDefinition&lt;/STRONG&gt;:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Name&amp;nbsp;&amp;nbsp; As Variable.Name,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; RawValue&amp;nbsp;&amp;nbsp; As Variable.Definition&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;FROM [$(zFileName)] (XmlSimple, Table is [DocumentSummary/VariableDescription])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where Not(IsReserved = 'true' Or IsConfig = 'true');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For i = 0 to NoOfRows('VariableDefinition') - 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Let zVarName = Peek('Variable.Name', i, 'VariableDefinition');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Let zVarValue = Peek('Variable.Definition', i, 'VariableDefinition');&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Let $(zVarName) = zVarValue;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the value of zFileName to the model from which you would like to get the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2014 06:59:53 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2014-05-14T06:59:53Z</dc:date>
    <item>
      <title>Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/632284#M1091760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is any possible to copy the variables from one application to another application ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;I have created more than 100 variables in my application. I have to copy all variables from one app to&amp;nbsp; another application. Please suggest on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudhakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 06:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/632284#M1091760</guid>
      <dc:creator>svsudhakar</dc:creator>
      <dc:date>2014-05-14T06:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/632285#M1091761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately it is not possible,&lt;/P&gt;&lt;P&gt;the solution is to create variables in the script with LET and SET instructions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 06:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/632285#M1091761</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-05-14T06:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/632286#M1091762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use an include script instead of creating it in qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shameem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 06:16:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/632286#M1091762</guid>
      <dc:creator />
      <dc:date>2014-05-14T06:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/632287#M1091763</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 extract the variables using a script like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Let zFileName = 'C:\Projects\Project1\Model.qvw';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;VariableDefinition&lt;/STRONG&gt;:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Name&amp;nbsp;&amp;nbsp; As Variable.Name,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; RawValue&amp;nbsp;&amp;nbsp; As Variable.Definition&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt; line-height: 1.5em;"&gt;FROM [$(zFileName)] (XmlSimple, Table is [DocumentSummary/VariableDescription])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where Not(IsReserved = 'true' Or IsConfig = 'true');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For i = 0 to NoOfRows('VariableDefinition') - 1&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Let zVarName = Peek('Variable.Name', i, 'VariableDefinition');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Let zVarValue = Peek('Variable.Definition', i, 'VariableDefinition');&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; Let $(zVarName) = zVarValue;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the value of zFileName to the model from which you would like to get the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 06:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/632287#M1091763</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-05-14T06:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/632288#M1091764</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 download an external plugin called QVPlus, you have the possibility to export variables from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2014 11:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/632288#M1091764</guid>
      <dc:creator>maleksafa</dc:creator>
      <dc:date>2014-05-14T11:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/632289#M1091765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick response.&lt;/P&gt;&lt;P&gt;I am getting an error while executing the above script,&lt;/P&gt;&lt;P&gt; could you please provide me an sample application for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sudhakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 03:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/632289#M1091765</guid>
      <dc:creator>svsudhakar</dc:creator>
      <dc:date>2014-05-15T03:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/632290#M1091766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shamshunnisa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created all the variables through variable overview --&amp;gt;setting option.&lt;/P&gt;&lt;P&gt;could you please tell me how can I export the variable script to import in other application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudhakar &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 03:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/632290#M1091766</guid>
      <dc:creator>svsudhakar</dc:creator>
      <dc:date>2014-05-15T03:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Variables</title>
      <link>https://community.qlik.com/t5/QlikView/Variables/m-p/632291#M1091767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The code given by Jonathan&lt;/SPAN&gt; is working. You should replace &lt;EM style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; 'C:\Projects\Project1\Model.qvw';&lt;/EM&gt;&amp;nbsp; as per your required file path. Hope you have done that. We can help you if can share the error message or the application with us. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attaching files for your reference. Variables in Sales dashboard-copy.qvw are extracted to variables.qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shameem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2014 05:56:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables/m-p/632291#M1091767</guid>
      <dc:creator />
      <dc:date>2014-05-15T05:56:36Z</dc:date>
    </item>
  </channel>
</rss>

