<?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: Extension to Load Images from Media Library Based on Variable in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-to-Load-Images-from-Media-Library-Based-on-Variable/m-p/2472643#M20990</link>
    <description>&lt;P&gt;Maybe I misunderstood your needs, anyway I was thinking about something like this.&lt;/P&gt;
&lt;P&gt;In the data model you define a table containing the image path (sense content library), similar to this:&lt;/P&gt;
&lt;P&gt;images:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;name, url&lt;BR /&gt;MAN1, /content/lab/noun-man-7038300.png&lt;BR /&gt;MAN2, /content/lab/noun-man-7038323.png&lt;BR /&gt;MAN3, /content/lab/noun-man-7038334.png&lt;BR /&gt;]&lt;/P&gt;
&lt;P&gt;and display it in a straight table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-07-24 at 12.23.58.png" style="width: 455px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169856i495763E419B61AD0/image-dimensions/455x426?v=v2" width="455" height="426" role="button" title="Screenshot 2024-07-24 at 12.23.58.png" alt="Screenshot 2024-07-24 at 12.23.58.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need only one image, you can define a variable that retrieve the url image by a criteria:&lt;/P&gt;
&lt;P&gt;for example vCurrentUserImage:&lt;/P&gt;
&lt;P&gt;=IF(subfield(OSUser(), '=', -1) = 'cristian.dalsanto', '/content/lab/noun-man-7038300.png', subfield(OSUser(), '\', 2))&lt;/P&gt;
&lt;P&gt;and showing it using the table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-07-24 at 12.55.36.png" style="width: 386px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169860i3888188C25D3ADA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-07-24 at 12.55.36.png" alt="Screenshot 2024-07-24 at 12.55.36.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;best regards,&lt;/P&gt;
&lt;P&gt;Cristian&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jul 2024 10:57:47 GMT</pubDate>
    <dc:creator>cristian_dalsanto</dc:creator>
    <dc:date>2024-07-24T10:57:47Z</dc:date>
    <item>
      <title>Extension to Load Images from Media Library Based on Variable</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-to-Load-Images-from-Media-Library-Based-on-Variable/m-p/2472602#M20983</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;I need to display different images based on the value of a variable. Unfortunately, the native "Text &amp;amp; Image" object doesn’t seem to meet my requirements.&lt;/P&gt;
&lt;P&gt;Is there a way to load images from the media library depending on a variable (the variable will likely match the image names with a ".png" extension)?&lt;/P&gt;
&lt;P&gt;I’ve come across extensions that allow the use of APIs or URLs, but my images are stored on my PC, and I'm not sure how I can share them via URLs (security policies).&lt;/P&gt;
&lt;P&gt;Does anyone know of an extension that can help with this?&lt;/P&gt;
&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 08:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-to-Load-Images-from-Media-Library-Based-on-Variable/m-p/2472602#M20983</guid>
      <dc:creator>Pico</dc:creator>
      <dc:date>2024-07-24T08:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Extension to Load Images from Media Library Based on Variable</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-to-Load-Images-from-Media-Library-Based-on-Variable/m-p/2472620#M20986</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/170632"&gt;@Pico&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;maybe you've already thought of this, but you could upload the images to the Qlik Sense content library and then display them with an extension or the native Sense table object.&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Cristian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 09:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-to-Load-Images-from-Media-Library-Based-on-Variable/m-p/2472620#M20986</guid>
      <dc:creator>cristian_dalsanto</dc:creator>
      <dc:date>2024-07-24T09:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Extension to Load Images from Media Library Based on Variable</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-to-Load-Images-from-Media-Library-Based-on-Variable/m-p/2472628#M20988</link>
      <description>&lt;UL&gt;
&lt;LI&gt;&lt;EM&gt;with an extension:&lt;/EM&gt; All the one I saw work with URL, not with Media Library. if you know one that works differently please let me know!&lt;/LI&gt;
&lt;LI&gt;&lt;EM&gt;&lt;SPAN&gt;the native Sense table object.&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;This one work by selecting the image as background (same as "text &amp;amp; Image" object), so you cannot select the image depending on a variable. If there is a way to make it work with variable I am all ears!&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Note that I need&amp;nbsp;&lt;STRONG&gt;one single object&lt;/STRONG&gt;, cause I have 40+ images, so loading 40+ different objects (like "text &amp;amp; image" one) and using a visualization condition on all of them, it's not feasible!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: I'm assuming "&lt;SPAN&gt;&lt;EM&gt;Qlik Sense content library&lt;/EM&gt;&amp;nbsp;" and&amp;nbsp;&lt;EM&gt;Media Library&lt;/EM&gt; to be the same thing. If 'm wrong please tell me&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 10:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-to-Load-Images-from-Media-Library-Based-on-Variable/m-p/2472628#M20988</guid>
      <dc:creator>Pico</dc:creator>
      <dc:date>2024-07-24T10:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Extension to Load Images from Media Library Based on Variable</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-to-Load-Images-from-Media-Library-Based-on-Variable/m-p/2472643#M20990</link>
      <description>&lt;P&gt;Maybe I misunderstood your needs, anyway I was thinking about something like this.&lt;/P&gt;
&lt;P&gt;In the data model you define a table containing the image path (sense content library), similar to this:&lt;/P&gt;
&lt;P&gt;images:&lt;BR /&gt;LOAD * Inline [&lt;BR /&gt;name, url&lt;BR /&gt;MAN1, /content/lab/noun-man-7038300.png&lt;BR /&gt;MAN2, /content/lab/noun-man-7038323.png&lt;BR /&gt;MAN3, /content/lab/noun-man-7038334.png&lt;BR /&gt;]&lt;/P&gt;
&lt;P&gt;and display it in a straight table&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-07-24 at 12.23.58.png" style="width: 455px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169856i495763E419B61AD0/image-dimensions/455x426?v=v2" width="455" height="426" role="button" title="Screenshot 2024-07-24 at 12.23.58.png" alt="Screenshot 2024-07-24 at 12.23.58.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need only one image, you can define a variable that retrieve the url image by a criteria:&lt;/P&gt;
&lt;P&gt;for example vCurrentUserImage:&lt;/P&gt;
&lt;P&gt;=IF(subfield(OSUser(), '=', -1) = 'cristian.dalsanto', '/content/lab/noun-man-7038300.png', subfield(OSUser(), '\', 2))&lt;/P&gt;
&lt;P&gt;and showing it using the table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-07-24 at 12.55.36.png" style="width: 386px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169860i3888188C25D3ADA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-07-24 at 12.55.36.png" alt="Screenshot 2024-07-24 at 12.55.36.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;best regards,&lt;/P&gt;
&lt;P&gt;Cristian&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 10:57:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-to-Load-Images-from-Media-Library-Based-on-Variable/m-p/2472643#M20990</guid>
      <dc:creator>cristian_dalsanto</dc:creator>
      <dc:date>2024-07-24T10:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Extension to Load Images from Media Library Based on Variable</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-to-Load-Images-from-Media-Library-Based-on-Variable/m-p/2472737#M20996</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/81045"&gt;@cristian_dalsanto&lt;/a&gt;&amp;nbsp;for your precious suggestions, they were really helpful.&lt;BR /&gt;Her is the solution we used:&lt;/P&gt;
&lt;P&gt;All the images has been loaded into the Media Library,&lt;/P&gt;
&lt;P&gt;Through the api&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://tenant.region.qlikcloud.com/api/v1/apps/appId/media/list&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we got the URLs of every image (see&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Move-to-SaaS/Is-there-a-way-to-share-the-Media-Library/td-p/2456608" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Move-to-SaaS/Is-there-a-way-to-share-the-Media-Library/td-p/2456608&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;Using the "Map" object, with&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Layer&amp;nbsp;
&lt;UL&gt;
&lt;LI&gt;Label = &lt;EM&gt;tenant.region&lt;/EM&gt;&lt;SPAN&gt;.qlikcloud.com&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Format =Image,&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;URL ='/api/v1/apps/&lt;EM&gt;APPID&lt;/EM&gt;/media/files/$(=vImageName]).png'&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Map setting - base map - none.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;So we got a single image, based on a variable. No extension needed (even if it's a pretty strange procedure if you ask me, both the map object and the API to retrieve the images URLs)&lt;/P&gt;
&lt;P&gt;We didn't use the map because, to show only one image at time, it wasn't aesthetically pleasing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 15:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Extension-to-Load-Images-from-Media-Library-Based-on-Variable/m-p/2472737#M20996</guid>
      <dc:creator>Pico</dc:creator>
      <dc:date>2024-07-24T15:57:09Z</dc:date>
    </item>
  </channel>
</rss>

