<?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: Export Variables from an application. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345023#M127533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then you could remove the = in a copy of your application and use Johannes approach. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But maybe this way works also :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'$(Variable1)' as Variable1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,'$(Variable2)' as Variable2&lt;/P&gt;&lt;P&gt;AutoGenerate(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE [3] into c:\Variables.txt (txt);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2012 06:29:08 GMT</pubDate>
    <dc:creator>giakoum</dc:creator>
    <dc:date>2012-07-11T06:29:08Z</dc:date>
    <item>
      <title>Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345013#M127523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there any way by which we can export all the variables created in the application (During the reloading or development).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 04:13:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345013#M127523</guid>
      <dc:creator />
      <dc:date>2012-07-11T04:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345014#M127524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way of doing this is to create all variables in the script and export the script file from which the variables can be created. Probably this is a good practice as this documents all the variables in the application.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 04:40:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345014#M127524</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2012-07-11T04:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345015#M127525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Create an input box&lt;/P&gt;&lt;P&gt;2. Click Add All to list all variables&lt;/P&gt;&lt;P&gt;3. Send to Excel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 04:44:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345015#M127525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-11T04:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345016#M127526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Johannes,&lt;/P&gt;&lt;P&gt;thxs for the reply... i have tried this approach but the variables that are declared with the '=' displays the result rather than the expression. &lt;/P&gt;&lt;P&gt;how can i export the exact expression of the variables which has the expression starting with '='?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 05:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345016#M127526</guid>
      <dc:creator />
      <dc:date>2012-07-11T05:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345017#M127527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that Johannes is right. See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 05:36:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345017#M127527</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-07-11T05:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345018#M127528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah Vivek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're right. Didn't think about that one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 05:49:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345018#M127528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-11T05:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345019#M127529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;the example shared by you doesnot contain '=' sign before the expression...so the result is the whole expression but if the expression is declared with '=' sign at the begining then it doesn'tshow the expression but the result of the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the attached file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 05:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345019#M127529</guid>
      <dc:creator />
      <dc:date>2012-07-11T05:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345020#M127530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this exact reason, I suggested to include the expression for defining the variable in the script and export the script with the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 06:01:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345020#M127530</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2012-07-11T06:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345021#M127531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry yes you are right. Is it a one time thing or you need to export the expressions over and over again? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 06:05:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345021#M127531</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-07-11T06:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345022#M127532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no its a one time thing...actually the thing is that the applications have very complex expressions defined in them. so i wanted to export all the expressions for safe keeping.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 06:14:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345022#M127532</guid>
      <dc:creator />
      <dc:date>2012-07-11T06:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345023#M127533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then you could remove the = in a copy of your application and use Johannes approach. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But maybe this way works also :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'$(Variable1)' as Variable1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;,'$(Variable2)' as Variable2&lt;/P&gt;&lt;P&gt;AutoGenerate(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE [3] into c:\Variables.txt (txt);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 06:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345023#M127533</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2012-07-11T06:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345024#M127534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnxs a lot...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 06:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345024#M127534</guid>
      <dc:creator />
      <dc:date>2012-07-11T06:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345025#M127535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Superb, for new users like me, this is very useful.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 12:40:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345025#M127535</guid>
      <dc:creator />
      <dc:date>2017-03-20T12:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345026#M127536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In order to fetch those variables that contain formulas you might go to:&lt;/P&gt;&lt;P&gt;Settings, Expression Overview (Ctrl+Alt+E)&lt;/P&gt;&lt;P&gt;Check "Other Expressions"&lt;/P&gt;&lt;P&gt;They are listed at the end, without Variable name in the first place.&lt;/P&gt;&lt;P&gt;So click the Button "Column" and choose "Location(Full)"&lt;/P&gt;&lt;P&gt;That contains information on the variable name&lt;/P&gt;&lt;P&gt;You can export this and get rid of the unnecessary "&amp;lt;Document&amp;gt;.&amp;lt;Variable="xxx"&amp;gt;" construct with an easy general search/replace in any text editor easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to transfer the definition of you variables into the load script, you might give a try to the following approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use RegEx here. For those who are not familiar with it, you might find your own way. What we do here is basically add a line for each variable int the load script that is like&lt;/P&gt;&lt;P&gt;LET Variable = 'Expression'&lt;/P&gt;&lt;P&gt;It has to be LET, not SET in order to work properly.&lt;/P&gt;&lt;P&gt;You must not have apostrophes in your expressions, so you have to split the expressions and concatenate them with chr(39) again as chr(39) stands for an apostrophe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this is how you bring the magic of RegEx into this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use an editor that supports RegEx (Notepad++), you can transform the Export to a QlikView load script by searching&lt;/P&gt;&lt;P&gt;(\n\t*&amp;lt;Document&amp;gt;\.&amp;lt;Variable=)(.*)(&amp;gt;\t)(.*)(\r)&lt;/P&gt;&lt;P&gt;and replace it by&lt;/P&gt;&lt;P&gt;LET $2 = '$4';&lt;/P&gt;&lt;P&gt;(in RegEx mode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your expressions contain apostrophes, you FIRST need to replace these by searching for&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;and replace it by&lt;/P&gt;&lt;P&gt;'&amp;amp;chr\(39\)&amp;amp;'&lt;/P&gt;&lt;P&gt;(in RegEx mode)&lt;/P&gt;&lt;P&gt;or by&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'&amp;amp;chr(39)&amp;amp;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(in standard mode)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;If your expressions contain $ sign expansion, you need to replace these dollar signs by searching for&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;\$&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(in RegEx mode) or&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;$&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(in regular mode)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and replace it by&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;'&amp;amp;chr\(36\)&amp;amp;'&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(in RegEx mode)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;or by&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;'&amp;amp;chr(36)&amp;amp;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(in standard mode)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;That gives you a series of LET expressions that you can easily paste into the load script.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any later changes to you variables definitions has to happen in the oad script then, as it woul get overwritten any time you run the load script again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;If you need the "other" variables (those not containing a formula) as well in the load script, you might follow Johannes apporach, transform the output in Excel to SET expressions with an Excel&amp;nbsp; formula like ="SET "&amp;amp;A1&amp;amp;" = "&amp;amp;C1&amp;amp;";" and paste this into the QlikView load script before the above generated LET expressions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;That way, you get all variables where the ones that are defined by a formula are also still defined as formula because the following LET overwrite the (in these cases wrong) SET definitions.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 09:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345026#M127536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-19T09:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export Variables from an application.</title>
      <link>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345027#M127537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; You are awesome &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 09:35:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Export-Variables-from-an-application/m-p/345027#M127537</guid>
      <dc:creator>prbnrs11</dc:creator>
      <dc:date>2018-07-04T09:35:16Z</dc:date>
    </item>
  </channel>
</rss>

