Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
montubhardwaj
Specialist
Specialist

How we can load images in to QV

How we can load images(JPEG,.bmp etc) in to QV so that we can use them in text boxes, buttons etc. based on some conditions. I dont want to use info load. I want to pull the images into the scripts (if possible) and then display them conditionally. Is it possible?


Regards,
Sharma

1 Solution

Accepted Solutions
Not applicable

Here is the script which load image from particular directory specified into QVW.

for each image in filelist ('*.png'); // Here it loads png image
let j= subfield(subfield(image,'\',-1),'.',1);

Smiley: // Table name
LOAD * INLINE [
    Smile, Location // Fields under the table
    $(j), $(image) // Image name and the location
    ];    
next image; // loop to load all images

bundle info load * // Which load and save images from external location.
resident Smiley;

Regards,

Srini.

View solution in original post

4 Replies
Not applicable

Hi,

Don't you want to use Bundle Load ?

Regards,

Srini.

montubhardwaj
Specialist
Specialist
Author

Hi Srini,

Can you please explain if possible ?

Not applicable

Here is the script which load image from particular directory specified into QVW.

for each image in filelist ('*.png'); // Here it loads png image
let j= subfield(subfield(image,'\',-1),'.',1);

Smiley: // Table name
LOAD * INLINE [
    Smile, Location // Fields under the table
    $(j), $(image) // Image name and the location
    ];    
next image; // loop to load all images

bundle info load * // Which load and save images from external location.
resident Smiley;

Regards,

Srini.

montubhardwaj
Specialist
Specialist
Author

Hi Srini,

Thanks for your help but I have done it other way around. This is also quite a logic.

Regards,

Sharma