<?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: How to create a delay for exporting to image option, so that my UI render completely while downloading? in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-delay-for-exporting-to-image-option-so-that-my/m-p/2067303#M18513</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127133"&gt;@Manoj_Prabu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you talking about downloading the image, if so refer to below link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/Printing/exporting-visualization.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/Printing/exporting-visualization.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please be more specific about the requirement so we can move in right directions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Padma Priya&lt;/P&gt;
&lt;P&gt;Qlik Support&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2023 15:44:56 GMT</pubDate>
    <dc:creator>PadmaPriya</dc:creator>
    <dc:date>2023-05-03T15:44:56Z</dc:date>
    <item>
      <title>How to create a delay for exporting to image option, so that my UI render completely while downloading?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-delay-for-exporting-to-image-option-so-that-my/m-p/2067232#M18511</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;In my extension, I'm using an API call to fetch some details from other service and render the different UI based on the response. The issue is when I try to export as image, Qlik sense rendering before my UI gets rendered.&amp;nbsp;&lt;BR /&gt;I tried to setTimeout for the qlik.promise.resolve and I also tried to use qlik.promise.defer to delay the export functionality. Still I couldn't able to render the UI in the image.&lt;BR /&gt;&lt;BR /&gt;Any information is appreciated. Please reply incase of additional information is required.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Manoj&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 13:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-delay-for-exporting-to-image-option-so-that-my/m-p/2067232#M18511</guid>
      <dc:creator>Manoj_Prabu</dc:creator>
      <dc:date>2023-05-03T13:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a delay for exporting to image option, so that my UI render completely while downloading?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-delay-for-exporting-to-image-option-so-that-my/m-p/2067303#M18513</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/127133"&gt;@Manoj_Prabu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you talking about downloading the image, if so refer to below link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/Printing/exporting-visualization.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/February2023/Subsystems/Hub/Content/Sense_Hub/Printing/exporting-visualization.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also please be more specific about the requirement so we can move in right directions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Padma Priya&lt;/P&gt;
&lt;P&gt;Qlik Support&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 15:44:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-delay-for-exporting-to-image-option-so-that-my/m-p/2067303#M18513</guid>
      <dc:creator>PadmaPriya</dc:creator>
      <dc:date>2023-05-03T15:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a delay for exporting to image option, so that my UI render completely while downloading?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-delay-for-exporting-to-image-option-so-that-my/m-p/2067339#M18514</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/130089"&gt;@PadmaPriya&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for the response. Yes, you are right. I'm talking about the export as image, pdf option that available in the context menu.&lt;/P&gt;
&lt;P&gt;For the understanding, I'm developing a &lt;STRONG&gt;Qlik sense extension&lt;/STRONG&gt;, where I'm using fetch API to get some data from our service, based on which I'll render the UI. There is no issue with the UI, as it gets rendered once it fetches the data from the API service. But when I try to export it as image/pdf, Qlik render the image even before my UI gets rendered. So, it coming as blank. If I remove the API call, then the image is rendering as expected.&lt;/P&gt;
&lt;P&gt;Table as Object:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Table as Object" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/106389i319B8C4475EC55AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-05-03 215936.png" alt="Table as Object" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Table as Object&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Exported Image just have nothing.&amp;nbsp;&lt;BR /&gt;I referred to the below link to wait until my UI get rendered, but still, I didn't get it properly in the exported image.&lt;BR /&gt;&lt;A href="https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/APIs/Content/Sense_ClientAPIs/CapabilityAPIs/RootAPI/promise-object.htm" target="_blank"&gt;promise object | Qlik Sense for developers Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Whereas the export to data is working properly as it has nothing to do with the UI.&lt;BR /&gt;Please let me know any specific kind of information is required.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Manoj&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 04:18:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-delay-for-exporting-to-image-option-so-that-my/m-p/2067339#M18514</guid>
      <dc:creator>Manoj_Prabu</dc:creator>
      <dc:date>2023-05-04T04:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a delay for exporting to image option, so that my UI render completely while downloading?</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-delay-for-exporting-to-image-option-so-that-my/m-p/2069472#M18535</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;I found the solution for the issue. we just need to create a delay until the API call is completed.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;var Promise = qlik.Promise;
				return new Promise(function (resolve, reject) {
					setTimeout(function () {
						resolve(); // Extension painted successfully
					}, 1000);
				});&lt;/LI-CODE&gt;
&lt;P&gt;I just used the above code instead of&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;return qlik.Promise.resolve();&lt;/LI-CODE&gt;
&lt;P&gt;Simply set the time out to 1 sec. (it may cause issue if the API call exceed 1 sec to complete).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Note:&amp;nbsp;&lt;/STRONG&gt;Once we included the code, restart the Qlik Printing service. Without restart, it may produce the result based on the previous state which means even if we change the code, it still produces blank page.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 05:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/How-to-create-a-delay-for-exporting-to-image-option-so-that-my/m-p/2069472#M18535</guid>
      <dc:creator>Manoj_Prabu</dc:creator>
      <dc:date>2023-05-10T05:49:23Z</dc:date>
    </item>
  </channel>
</rss>

