<?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: Looking for simple example to pass variables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722263#M1241082</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I should have noticed earlier that you are looking for JS. The above code is VBScript. I am not sure if variable of a qv doc can be referred using JS in extension. May be &lt;A href="https://community.qlik.com/qlik-users/23711"&gt;Brian Munz&lt;/A&gt; can help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Sep 2014 12:09:19 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-09-30T12:09:19Z</dc:date>
    <item>
      <title>Looking for simple example to pass variables</title>
      <link>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722260#M1241075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anyone please provide a simple example how to get QV-Variables and assign them to javascript variables?&lt;/P&gt;&lt;P&gt;The posts I found are quite confusing and I can't get it to work with my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example I want to pass a input box variable to javascript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use QV 11R6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Thorsten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722260#M1241075</guid>
      <dc:creator />
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for simple example to pass variables</title>
      <link>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722261#M1241076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set var=ActiveDocument.GetVariable("Vriablename")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;Or&lt;/P&gt;&lt;P&gt;Set var=ActiveDocument.Variables("Vriablename")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 06:11:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722261#M1241076</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-09-30T06:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for simple example to pass variables</title>
      <link>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722262#M1241079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put it in here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Qv.LoadExtensionScripts(jsFiles, function () {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set varabc = ActiveDocument.GetVariable("var1") ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives me an error: expecting ";"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A working example would be nice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 11:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722262#M1241079</guid>
      <dc:creator />
      <dc:date>2014-09-30T11:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for simple example to pass variables</title>
      <link>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722263#M1241082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I should have noticed earlier that you are looking for JS. The above code is VBScript. I am not sure if variable of a qv doc can be referred using JS in extension. May be &lt;A href="https://community.qlik.com/qlik-users/23711"&gt;Brian Munz&lt;/A&gt; can help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 12:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722263#M1241082</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-09-30T12:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for simple example to pass variables</title>
      <link>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722264#M1241084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the template provided by Stefan Walter &lt;A href="http://www.qlikblog.at/2848/qlikview-extension-tutorial-basic-concept/"&gt;here.&lt;/A&gt; Then use the add the following code inside your extension_Done function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the definition file set a text field:&lt;/P&gt;&lt;P&gt;&amp;lt;Text Label="MyVariable" TargetName="$(variable here)" Type="text" Width="30%" Expression=""/&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use the text in your Script as so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var myVariable= _this.Layout.Text0.text.toString();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Know you can use the MyVariable how ever you like in your script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check your console = console.log(myVariable);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 12:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722264#M1241084</guid>
      <dc:creator />
      <dc:date>2014-10-01T12:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for simple example to pass variables</title>
      <link>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722265#M1241087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I think I got it right now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 11:21:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Looking-for-simple-example-to-pass-variables/m-p/722265#M1241087</guid>
      <dc:creator />
      <dc:date>2014-10-08T11:21:06Z</dc:date>
    </item>
  </channel>
</rss>

