<?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 Paint function being called twice - cannot override resize method? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2083415#M18679</link>
    <description>&lt;P&gt;I am experiencing an issue where the paint method is being called twice. Upon looking at the forum it seems to be related to the resize method. I tried adding in the resize method just after the paint method in the file. I added a console log line and it isn’t being picked up. Please any advice?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 19:49:24 GMT</pubDate>
    <dc:creator>Brunch1</dc:creator>
    <dc:date>2023-06-13T19:49:24Z</dc:date>
    <item>
      <title>Paint function being called twice - cannot override resize method?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2083415#M18679</link>
      <description>&lt;P&gt;I am experiencing an issue where the paint method is being called twice. Upon looking at the forum it seems to be related to the resize method. I tried adding in the resize method just after the paint method in the file. I added a console log line and it isn’t being picked up. Please any advice?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 19:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2083415#M18679</guid>
      <dc:creator>Brunch1</dc:creator>
      <dc:date>2023-06-13T19:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function being called twice - cannot override resize method?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2086687#M18710</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/201434"&gt;@Brunch1&lt;/a&gt;&lt;/SPAN&gt; could you please post your extension code?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 09:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2086687#M18710</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2023-06-22T09:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function being called twice - cannot override resize method?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2089701#M18745</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/145804"&gt;@alex_colombo&lt;/a&gt;&amp;nbsp; I am just trying to call the resize method in a simple extension.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token function"&gt;define&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;[&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'jquery'&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;]&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt; $ &lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'use strict'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;return&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;resize: function ( $element, layout ) {&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;console.log(‘test’)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;paint&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;:&lt;/SPAN&gt; &lt;SPAN class="token keyword"&gt;function&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt; $element&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN&gt; layout &lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;{&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token keyword"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; $helloWorld &lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; $&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN&gt; document&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;createElement&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'div'&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN&gt; $helloWorld&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;html&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'Hello World from the extension "SimpleHelloWorld"&amp;lt;br/&amp;gt;'&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;SPAN&gt; $element&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;append&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt; $helloWorld &lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;}&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation"&gt;but I cannot see the console log anywhere and still gets painted twice. The resize method does not get called and I am unsure why.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2023 06:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2089701#M18745</guid>
      <dc:creator>Brunch1</dc:creator>
      <dc:date>2023-07-01T06:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function being called twice - cannot override resize method?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2090072#M18750</link>
      <description>&lt;P&gt;&lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/201434"&gt;@Brunch1&lt;/a&gt;&lt;/SPAN&gt; resize is not a methoed allowed in extension APIs. What are you trying to achieve?&lt;BR /&gt;Could you please send me the entire code of your extension with all your files? I've tried to use your js code but it doesn't work for me with en error on console.log within resize method.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 14:53:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2090072#M18750</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2023-07-03T14:53:58Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function being called twice - cannot override resize method?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2090331#M18758</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/145804"&gt;@alex_colombo&lt;/a&gt;&amp;nbsp; from this link mentioned&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Qlik-Sense-Desktop-Extension-Paint-Function-called-twice/td-p/658108" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/Qlik-Sense-Desktop-Extension-Paint-Function-called-twice/td-p/658108&lt;/A&gt; - it mentions resize method that we can override?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2023 11:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2090331#M18758</guid>
      <dc:creator>Brunch1</dc:creator>
      <dc:date>2023-07-04T11:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function being called twice - cannot override resize method?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2090380#M18759</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/201434"&gt;@Brunch1&lt;/a&gt;&amp;nbsp;please try to use this code as a sample extension. Paint method is trigger once when app is loaded for the first time.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;define( [ "qlik"
],
function ( qlik) {

	return {
		support : {
			snapshot: true,
			export: true,
			exportData : false
		},
		paint: function ($element) {
			//add your rendering code here
			$element.html( "Hello World" );
			console.log("paint")
			//needed for export
			return qlik.Promise.resolve();
		}
	};

} );

&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Jul 2023 13:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2090380#M18759</guid>
      <dc:creator>alex_colombo</dc:creator>
      <dc:date>2023-07-04T13:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Paint function being called twice - cannot override resize method?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2091850#M18799</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/145804"&gt;@alex_colombo&lt;/a&gt;&amp;nbsp;when I have the same extension on all the sheets and navigating to another sheet it paints it twice when I console log or when I refresh.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Jul 2023 17:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Paint-function-being-called-twice-cannot-override-resize-method/m-p/2091850#M18799</guid>
      <dc:creator>Brunch1</dc:creator>
      <dc:date>2023-07-09T17:17:24Z</dc:date>
    </item>
  </channel>
</rss>

