<?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: Copy variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1673565#M729212</link>
    <description>&lt;P&gt;Yes - and if you read the link that Rob suggested you will find code to do exactly that.&lt;/P&gt;&lt;P&gt;Quoting from his post it will look like this:&lt;/P&gt;&lt;PRE&gt;FOR idx=0 to NoOfRows('VARIABLE')-1
 LET vVarname = Peek('Name',$(idx),'VARIABLE');
 LET [$(vVarname)] = Peek('RawValue',$(idx),'VARIABLE');
NEXT idx

SET idx=;
SET vVarname=;
DROP Table VARIABLE;&lt;/PRE&gt;</description>
    <pubDate>Sat, 08 Feb 2020 19:55:52 GMT</pubDate>
    <dc:creator>petter</dc:creator>
    <dc:date>2020-02-08T19:55:52Z</dc:date>
    <item>
      <title>Copy variable</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672655#M729202</link>
      <description>&lt;P&gt;Hello gurus&lt;/P&gt;&lt;P&gt;I have created a new document with a Binary load from an existing one.&lt;/P&gt;&lt;P&gt;However, variables are not being copied/transferred with the Binary load.&lt;/P&gt;&lt;P&gt;Is there a way to copy all variables (i have many of them) from the existing document to the new?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672655#M729202</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Copy variable</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672658#M729203</link>
      <description>&lt;P&gt;Yes the variables are not part of the data model of QlikView or Qlik Sense.&lt;/P&gt;&lt;P&gt;And yes there is a way of getting hold of the variables by reading them from the QVW-file. The QVW-file has an XML-section where the variables are accessible.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You will have to read the QVW-file from a load script with a LOAD statement using XML as the file format. Then you will get all the variables into a table. The table can be parsed with a simple FOR loop afterwards to recreate each and every variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 18:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672658#M729203</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2020-02-05T18:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Copy variable</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672662#M729204</link>
      <description>&lt;P&gt;Another approach is to make a QlikView macro with either VBScript or JScript (JavaScript). There is an API that let you manipulate and read anything in a QlikView document - variables are also fully accessible this way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Furthermore there are applications being made as "open-source" to do the job:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ImportExportVariables.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/28013i8E5FB6D161B85F29/image-size/large?v=v2&amp;amp;px=999" role="button" title="ImportExportVariables.png" alt="ImportExportVariables.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 18:40:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672662#M729204</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2020-02-05T18:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Copy variable</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672663#M729205</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;A little more help... Using QlikView not QlikSense&lt;/P&gt;&lt;P&gt;Where can the XML section be found?&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 18:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672663#M729205</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2020-02-05T18:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Copy variable</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672673#M729206</link>
      <description>&lt;P&gt;This is how you can retrieve the variable info:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;VARIABLE:
LOAD 
    Name,
    IsConfig,
    IsReserved,
    RawValue
FROM 
  [C:\Program Files\QlikView\Examples\Documents\Getting Started.qvw] 
  (XmlSimple, Table is [DocumentSummary/VariableDescription]);&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 05 Feb 2020 19:19:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672673#M729206</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2020-02-05T19:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Copy variable</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672675#M729207</link>
      <description>&lt;P&gt;You are the BEST!!!&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 19:22:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672675#M729207</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2020-02-05T19:22:20Z</dc:date>
    </item>
    <item>
      <title>Re: Copy variable</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672748#M729208</link>
      <description>&lt;P&gt;This blog post contains the code to both load and recreate the variables:&amp;nbsp;&lt;A href="https://qlikviewcookbook.com/2018/06/loading-variables-from-another-qvw/" target="_blank"&gt;https://qlikviewcookbook.com/2018/06/loading-variables-from-another-qvw/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 02:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1672748#M729208</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2020-02-06T02:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Copy variable</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1673044#M729209</link>
      <description>&lt;P&gt;Thank you Rob.&lt;/P&gt;&lt;P&gt;You always come through!&lt;/P&gt;&lt;P&gt;What would we do without you?&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 15:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1673044#M729209</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2020-02-06T15:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Copy variable</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1673558#M729210</link>
      <description>&lt;P&gt;That script helps to get variables in application but my question is how we can create variable in application . Any suggestions?&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2020 18:38:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1673558#M729210</guid>
      <dc:creator>sayalip</dc:creator>
      <dc:date>2020-02-08T18:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Copy variable</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1673559#M729211</link>
      <description>&lt;P&gt;I am using that script i have imported 100 variables now i want a script using that i can create all variable in my application instead of manual work. is it possible.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2020 18:40:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1673559#M729211</guid>
      <dc:creator>sayalip</dc:creator>
      <dc:date>2020-02-08T18:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Copy variable</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1673565#M729212</link>
      <description>&lt;P&gt;Yes - and if you read the link that Rob suggested you will find code to do exactly that.&lt;/P&gt;&lt;P&gt;Quoting from his post it will look like this:&lt;/P&gt;&lt;PRE&gt;FOR idx=0 to NoOfRows('VARIABLE')-1
 LET vVarname = Peek('Name',$(idx),'VARIABLE');
 LET [$(vVarname)] = Peek('RawValue',$(idx),'VARIABLE');
NEXT idx

SET idx=;
SET vVarname=;
DROP Table VARIABLE;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Feb 2020 19:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1673565#M729212</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2020-02-08T19:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: Copy variable</title>
      <link>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1674172#M729213</link>
      <description>&lt;P&gt;In any of the sheets type&lt;/P&gt;&lt;P&gt;&amp;lt;Ctrl&amp;gt;&amp;lt;Alt&amp;gt; v this will open a dialog box to create variables. Click Add, name your variable and then enter the formula/reference/fields that you would like to use in a variable name.&lt;/P&gt;&lt;P&gt;Did this help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 22:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Copy-variable/m-p/1674172#M729213</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2020-02-10T22:25:25Z</dc:date>
    </item>
  </channel>
</rss>

