Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dynamic Images

I currently have a few text objects that have backgrounds set as image files that I would like to be dynamic.  For example, the image files were originally pulled from a network location and I was hoping if someone replaced this image with the same exact name the image on the text object would automatically be updated.  I tried creating a variable with a path location and an input box, but still had no luck.

I set the variable like this, is this correct ='\\location\location\image.png'

7 Replies
Anonymous
Not applicable
Author

If i have understood correct... what you are trying should work....

But for the image to be updated on the dashboard, you would need to refresh the QVW again, if the image has been updated..

Is it not working even after the refresh?

-Aadil

Carlos_Reyes
Partner - Specialist
Partner - Specialist

As Aadil said,

Every time you open the QVW, images are loaded from its source, however QlikView doesn't check if the source files changes until you reload the QVW... so it won't change when you change the source file, it'll change when you reload the QVW.

I think that's as dynamic as it can be.

Not applicable
Author

Is this process for a text object or input box?

Not applicable
Author

Is this process for a text object or input box?

Anonymous
Not applicable
Author

I would say for any type of object where you are pulling an image from a location.

-Aadil

Not applicable
Author

I guess I am not setting the path correct.  When I use the text object, I do not see a place where i can use a variable as the source location.  I set Background = Image and click the Change button.  Here I navigate to the network location and choose the image file and it is displayed.

I tried replacing this image file (keeping same name) with different image and reloaded the QVW file but it did not change the original image.

Carlos_Reyes
Partner - Specialist
Partner - Specialist

I'm not completely sure but based on my experience you would have to change the path, or create a new one, to force the object to refresh the image. Perhaps there is somekind of cache but I don't know how to refresh it without refreshing the QVW.

I've tried to do the same exact thing and I haven't found a different way to accomplish that.

Review the attached to see how I usually use images.