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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Display of image in one box upon clicking another

Hi friends,

In one of my application tab, I have 10 small text objects (icons) which displays images of the selected entity. There is another big text object which should zoom and display the selected image out of the 10. As per my current logic, user should click on the image key of the desired image from a list box to see the zoomed image of the respective icon.

Can any one suggest a better mehtod to do this wherein if i click on the small icon of an image in the text object (instead of the image key in the list box) , then the big box should display the respective image automatically?

--Arun

5 Replies
Not applicable
Author

There is actually a built in solution for this kind of thing.

If you are using the bundle info load


Pictures:
bundle info LOAD
%Key,
Path&'\'&%Key&'.jpg' as PicPath
RESIDENT Table;


and then list the key-field of the info load in either a listbox or a multibox, a small icon "i" should appear when only one value is selected. Clicking this "i" will give you a preview of the image in the images actual saved size (thus no zoom). I have myself tried to utilize this function for showing previews, but had a hard time finding a user friendly interface to take advantage of that functionality.

With your logic, and since you are using text-boxes to view the small icons I would suggest an "activity" to select the proper image key when text-object is clicked.

-=Alternative Solution=-
However, another potential solution would be not to use text-boxes at all, but a straight table. Use the image-key as dimension (you can also make it a hidden column under the presentation tab if you don't want the user to see it) and use the expression


=info(key)


also, make sure the representation is set to image. Altering the cell height on each row will give you plenty of room for any icon you might want to use.

I'm attaching an example, connecting characters to pictures and showing the built in functionality of the "i"-symbol. Hope this helps!

//Jakob

Not applicable
Author

Thank you Jak. Use of 'i' for image dispaly is a new thing to me (I dod never thought in that way!). Both the sugegstions are good, but I need to to choose the former becasue there are nearly 20 picures per asset and the zoomed one should be of full page size.

--Arun

prabhu0505
Specialist
Specialist

Hi Jakob,

After one day struggle, I found the solution for what I was searching from your post.

Thanks

Not applicable
Author

Hi Jakob,

How did you code that "i" ?

/Jerrik

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP


Jerrik wrote:How did you code that "i" ?


The "i" is an automatic feature when you use info load in your script.

-Rob