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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
felcar2013
Partner - Creator III
Partner - Creator III

show image when clicking on button

hi

i need to create a functionality in which the user shall click on an object (text object with image inside) and go through a list of images. These images shall be shown in a text object.

table is of the form:

load    image_id,

           image_path,

          image_contact_id

from table;

this table is then associated to the rest of the data model via image_contact_id

thanks

9 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

felcar2013
Partner - Creator III
Partner - Creator III
Author

thanks, i did that already, but the requirement is to click on a button to display in sequence the images. it is like what you said, but with a previous step.

i think, this might be possible with a macro, right?

Not applicable

You can bundle all the images to you Qlikview:

Images:

BUNDLE LOAD

    Images, Path

FROM ...

And then, in the text object, write down this expression (and check the 'image' option in the visualization):

='qmem://Images/'&FieldValue('Images',$(vImgNum))

vImgNum is a variable, which you must increase every time you click on the object (with a trigger), unless it reaches the number of images loaded, that you have to initialize it to one again.

Try it. Good luck

Not applicable

Hi . Did you finally tried it?

Here is an example:

felcar2013
Partner - Creator III
Partner - Creator III
Author

hi Iosu

thanks, nice solution.

the problem i have, i do not want to load the images in the qvw doc.

using bundle, i will be adding the images to my doc and i will get more than 10,000 images of about 2 to 4 MB , which will represent a lot
i am using the link to the photo

Not applicable

Hi,

Instead of simple Load function you can use "Info Load" , this might will full fill your requirement.

felcar2013
Partner - Creator III
Partner - Creator III
Author

hi

i have the table with customer_id, and photo_id. i receive the data like that. I loaded this two fields and then made a load on load to create the path to the image or photo. something like this (loading from qvd,

track_photo:

load *,'D:\.........\Photo\'&%cus_track_photo__ID&'.jpg' as cus_track_photopath;

LOAD      contact__ID,

                        photo__ID

FROM $(vPath_QVD)\cus_track_photo.qvd(qvd);

but this is not working

Not applicable

info load *,'D:\.........\Photo\'&%cus_track_photo__ID&'.jpg' as cus_track_photopath;

LOAD      contact__ID,

                        photo__ID

FROM $(vPath_QVD)\cus_track_photo.qvd(qvd);

Did yopu try this?


felcar2013
Partner - Creator III
Partner - Creator III
Author

hi

thanks for your answer, I did not try. I did it differently. I used a normal load and then in text box i wrote the field where there is the path to the image. I included navigation buttons and the user can go forward and backward.

what is the advantage of using info load? bundle load is not recommended in this case, because i will need to load thousands of pictures. Is not the same how i did it, as if i use info load? i link an external file path.