<?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 Qlikview extensions two questions. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qlikview-extensions-two-questions/m-p/1615168#M1232584</link>
    <description>&lt;P&gt;1)&amp;nbsp;If I want to change the Definition.xml file and this does not affect the document in Ajax, do I need to open the document in development every time, delete the old extension and add a new extension?&lt;/P&gt;&lt;P&gt;If yes, did it come up with a madman? If you have hundreds of documents and you need to change only one line in the Definition.xml file, then you need a gun to shoot yourself?&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;In the Definition.xml file for document extension, how can I have access to read a variable, similar to object extension.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Definition.xml:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;Text Label="Text0" Type="text" Expression="=MyVariable"/&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script.js:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var msg = this.Layout.Text0.text.toString();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;alert(msg );&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I define my variable in a similar way to extension a object?&lt;/P&gt;&lt;P&gt;I'm using now &lt;STRONG&gt;Script.js:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var CurrentDocument = Qv.GetCurrentDocument();&lt;BR /&gt;&lt;BR /&gt;CurrentDocument.GetAllVariables(function (vars) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for (var i = 0; i &amp;lt; vars.length; i++) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;if (vars[i].name === "&lt;EM&gt;MyVariable&lt;/EM&gt;") {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;EM&gt;MyVariableInJS&lt;/EM&gt;= vars[i].value;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;};&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;};&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;EM&gt;alert(MyVariableInJS);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use similar settings for the Definition.xml file, but to extensions the document, not the object (...&amp;nbsp;&lt;EM&gt;"=MyVariable"/&amp;gt; ...&amp;nbsp; &amp;nbsp;...&amp;nbsp; &amp;nbsp;this.Layout.Text0.text.toString()&amp;nbsp; &amp;nbsp;...&lt;/EM&gt;)?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
    <dc:creator>warfollowmy_ver</dc:creator>
    <dc:date>2026-01-26T16:26:21Z</dc:date>
    <item>
      <title>Qlikview extensions two questions.</title>
      <link>https://community.qlik.com/t5/QlikView/Qlikview-extensions-two-questions/m-p/1615168#M1232584</link>
      <description>&lt;P&gt;1)&amp;nbsp;If I want to change the Definition.xml file and this does not affect the document in Ajax, do I need to open the document in development every time, delete the old extension and add a new extension?&lt;/P&gt;&lt;P&gt;If yes, did it come up with a madman? If you have hundreds of documents and you need to change only one line in the Definition.xml file, then you need a gun to shoot yourself?&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;In the Definition.xml file for document extension, how can I have access to read a variable, similar to object extension.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Definition.xml:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;Text Label="Text0" Type="text" Expression="=MyVariable"/&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script.js:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;var msg = this.Layout.Text0.text.toString();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;alert(msg );&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I define my variable in a similar way to extension a object?&lt;/P&gt;&lt;P&gt;I'm using now &lt;STRONG&gt;Script.js:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var CurrentDocument = Qv.GetCurrentDocument();&lt;BR /&gt;&lt;BR /&gt;CurrentDocument.GetAllVariables(function (vars) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;for (var i = 0; i &amp;lt; vars.length; i++) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;if (vars[i].name === "&lt;EM&gt;MyVariable&lt;/EM&gt;") {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;EM&gt;MyVariableInJS&lt;/EM&gt;= vars[i].value;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;};&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;};&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;EM&gt;alert(MyVariableInJS);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use similar settings for the Definition.xml file, but to extensions the document, not the object (...&amp;nbsp;&lt;EM&gt;"=MyVariable"/&amp;gt; ...&amp;nbsp; &amp;nbsp;...&amp;nbsp; &amp;nbsp;this.Layout.Text0.text.toString()&amp;nbsp; &amp;nbsp;...&lt;/EM&gt;)?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2026 16:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qlikview-extensions-two-questions/m-p/1615168#M1232584</guid>
      <dc:creator>warfollowmy_ver</dc:creator>
      <dc:date>2026-01-26T16:26:21Z</dc:date>
    </item>
  </channel>
</rss>

