<?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: Exporting multiple images using exportImg in forEach() only prints some of the images in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1573844#M10412</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for the quick reply. No errors that I could see, even using try/catch it didn't pick up any errors. Some of the images just don't get exported.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Heinri&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2019 12:40:21 GMT</pubDate>
    <dc:creator>HeinriG</dc:creator>
    <dc:date>2019-04-26T12:40:21Z</dc:date>
    <item>
      <title>Exporting multiple images using exportImg in forEach() only prints some of the images</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1573809#M10408</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to export multiple images from a list (array) of object ids using forEach and exportImg. The function iterates through all ids but only seems to return links for some of the object ids. It also seems like it is either 1 or 2 less than the total amount requested. Any help would be much appreciated. For what it's worth, the loop runs inside of an onClick event attached to a button.&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;exportIdList.forEach((id, key) =&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;app.visualization.get(id).then(function(vis){&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vis.exportImg(settings).then(function (link) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log(link);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:59:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1573809#M10408</guid>
      <dc:creator>HeinriG</dc:creator>
      <dc:date>2024-11-16T05:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple images using exportImg in forEach() only prints some of the images</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1573835#M10410</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Any errors in the browser console? Have you tried catching errors from the exportImg call?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 12:35:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1573835#M10410</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2019-04-26T12:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple images using exportImg in forEach() only prints some of the images</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1573844#M10412</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for the quick reply. No errors that I could see, even using try/catch it didn't pick up any errors. Some of the images just don't get exported.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Heinri&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 12:40:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1573844#M10412</guid>
      <dc:creator>HeinriG</dc:creator>
      <dc:date>2019-04-26T12:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple images using exportImg in forEach() only prints some of the images</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1573849#M10413</link>
      <description>&lt;P&gt;And different charts failing each time?&lt;/P&gt;&lt;P&gt;You could try fetching and printing them one by one instead of in paralell. I don't have much experience with the printing service, but I assume there is a log you could look at.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 12:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1573849#M10413</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2019-04-26T12:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple images using exportImg in forEach() only prints some of the images</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1573853#M10414</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sometimes different charts fail to print, it is quite inconsistent, but it generally still prints 1 or 2 less than my selection.&lt;/P&gt;&lt;P&gt;How would I go about fetching them one by one? I've tried the setTimeout() method to spread the calls out with no luck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been looking for a log, I can't seem to find it but I'm still searching.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Heinri&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 12:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1573853#M10414</guid>
      <dc:creator>HeinriG</dc:creator>
      <dc:date>2019-04-26T12:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple images using exportImg in forEach() only prints some of the images</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1574149#M10419</link>
      <description>&lt;P&gt;You could fetch them one by one something like this (I haven't actually tried this, so there might be errors in the code):&lt;/P&gt;&lt;P&gt;function exportList(array, pos){&lt;/P&gt;&lt;P&gt;if(pos &amp;lt; array.length){&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;app.visualization.get(array[pos]).then(function(vis){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vis.exportImg(settings).then(function (link) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; console.log(link);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exportList(array, pos+1);&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;exportList(exportIdList,0);&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2019 06:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1574149#M10419</guid>
      <dc:creator>ErikWetterberg</dc:creator>
      <dc:date>2019-04-28T06:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting multiple images using exportImg in forEach() only prints some of the images</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1574265#M10421</link>
      <description>&lt;P&gt;This worked like a charm, thank you very much for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 05:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Exporting-multiple-images-using-exportImg-in-forEach-only-prints/m-p/1574265#M10421</guid>
      <dc:creator>HeinriG</dc:creator>
      <dc:date>2019-04-29T05:49:57Z</dc:date>
    </item>
  </channel>
</rss>

