<?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: sending the qlik object to a function inside the extension in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/sending-the-qlik-object-to-a-function-inside-the-extension/m-p/2000735#M17491</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/85503"&gt;@JShum&lt;/a&gt;&amp;nbsp;, are you trying to read input box value when onchange event is triggered and then use it for setting Qlik Sense variable value?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 14:23:23 GMT</pubDate>
    <dc:creator>alex_colombo</dc:creator>
    <dc:date>2022-11-04T14:23:23Z</dc:date>
    <item>
      <title>sending the qlik object to a function inside the extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/sending-the-qlik-object-to-a-function-inside-the-extension/m-p/1996820#M17456</link>
      <description>&lt;P&gt;I am trying to write a simple extension in the paint section of my extension.&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;I am creating an input box and in the onchange event I want to call a function and send the qlik object I guess so I can get the current app inside the function, or send the reference to the current app.&amp;nbsp; Is there a way to do that.&amp;nbsp; Here is what I got&lt;BR /&gt;I tried sending the variable a and it doesn't work.&lt;/P&gt;
&lt;P&gt;paint: function ($element) {&lt;BR /&gt;//add your rendering code here&lt;/P&gt;
&lt;P&gt;//var app = qlik.openApp('5b984685-4ba7-4e0a-8552-e36f02626a62', config);&lt;BR /&gt;//GenericVariable GetVariableByName([QixName("qName")] vtest)&lt;BR /&gt;&lt;BR /&gt;var qApp = qlik.currApp(this);&lt;/P&gt;
&lt;P&gt;qApp.variable.getContent('jtest').then(function(reply){&lt;BR /&gt;console.log(JSON.stringify( reply ) )&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;qApp.variable.setStringValue('jtest','changed').then(&lt;BR /&gt;console.log("setvalue"));&lt;BR /&gt;&lt;BR /&gt;qApp.variable.getContent('jtest').then(function(reply){&lt;BR /&gt;console.log(JSON.stringify( reply ) )&lt;BR /&gt;});&lt;BR /&gt;var a = 1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;var test = '&amp;lt;label class="lui-label"&amp;gt;Janet Test&amp;lt;/label&amp;gt;&amp;lt;input type="date" id="DateInput" style="width:140px;" onchange="myFunction(a)"&amp;gt;'&lt;/P&gt;
&lt;P&gt;$element.empty();&lt;BR /&gt;$element.append(test);&lt;BR /&gt;//needed for export&lt;BR /&gt;return qlik.Promise.resolve();&lt;BR /&gt;}&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Tue, 25 Oct 2022 21:52:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/sending-the-qlik-object-to-a-function-inside-the-extension/m-p/1996820#M17456</guid>
      <dc:creator>JShum</dc:creator>
      <dc:date>2022-10-25T21:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: sending the qlik object to a function inside the extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/sending-the-qlik-object-to-a-function-inside-the-extension/m-p/2000735#M17491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/85503"&gt;@JShum&lt;/a&gt;&amp;nbsp;, are you trying to read input box value when onchange event is triggered and then use it for setting Qlik Sense variable value?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 14:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/sending-the-qlik-object-to-a-function-inside-the-extension/m-p/2000735#M17491</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2022-11-04T14:23:23Z</dc:date>
    </item>
  </channel>
</rss>

