Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Meet Qlik's New CEO. The Future Is Bright — Here's What to Expect
cancel
Showing results for 
Search instead for 
Did you mean: 
datanoob
Contributor II
Contributor II

Image from external URL and SVG

i'm working with some kpis and there is a requirement for dynamic number of kpis and dynamic icons in db. I'm thinking about using kpis with background follow url in db and add it into trellis container. But problem is i can't use any svg or external images, do anyone know why? Is this because qlik block external site? Or i can achive this with Text and Images and Base64 encoding?
thanks

datanoob_0-1784778772925.png

 

Labels (3)
1 Solution

Accepted Solutions
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi, 

  1. you have 2 == signs which is incorrect
  2. you can whitelist what images are allowed from URL:

    To add a image from a URL, the origin must be added to the allowlist in your tenant's Content Security Policy. Add the origin with the img-src directive. This is done in the Administration activity center by an administrator.

    For more information, see Creating a CSP entry.

  3. you can also use SVG
  4. yes - you can also use base64 encoded images. 

cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.

View solution in original post

3 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi, 

  1. you have 2 == signs which is incorrect
  2. you can whitelist what images are allowed from URL:

    To add a image from a URL, the origin must be added to the allowlist in your tenant's Content Security Policy. Add the origin with the img-src directive. This is done in the Administration activity center by an administrator.

    For more information, see Creating a CSP entry.

  3. you can also use SVG
  4. yes - you can also use base64 encoded images. 

cheers

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

I am not sure about use of trellis with this as trellis container further adjust expressions used in nested objects to allow for "trellis" functionality which may be breaking what you are trying to achieve with your background image url expression

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
datanoob
Contributor II
Contributor II
Author

hi @Lech_Miszkiewicz then if i upload all icons into media library, is there any way to get the link api of icons automatically