Make image clickable

Stimulsoft Reports.JS discussion
Post Reply
pobber1
Posts: 19
Joined: Fri Jun 28, 2019 8:39 am

Make image clickable

Post by pobber1 »

Hi,

I have a number of images in my report (image data is base64). The images are contained inside image components and have the stretch option enabled.

Is there a way to make the images clickable so when the user clicks on them they will open the full size version for the user to view?

Thanks.
Lech Kulikowski
Posts: 7291
Joined: Tue Mar 20, 2018 5:34 am

Re: Make image clickable

Post by Lech Kulikowski »

Hello,

You can try to use Drill-Down interactions and by click open page with the full image.
https://demo.stimulsoft.com/#Js/ListOfProducts

Thank you.
pobber1
Posts: 19
Joined: Fri Jun 28, 2019 8:39 am

Re: Make image clickable

Post by pobber1 »

Hi, thanks for the quick reply.

I did like the link shows and it worked inside the Windows version of Stimulsoft Reports. However, when I use that report in the Js version I get blank page where the drill down should be and this error
in the console 'Cannot read property 'sti_is' of null'

Any ideas?
Lech Kulikowski
Posts: 7291
Joined: Tue Mar 20, 2018 5:34 am

Re: Make image clickable

Post by Lech Kulikowski »

Hello,

Please send us a sample report with test data which reproduces the issue for analysis.

Thank you.
pobber1
Posts: 19
Joined: Fri Jun 28, 2019 8:39 am

Re: Make image clickable

Post by pobber1 »

Hi,

Please see attached.

Thanks.
Attachments
activity-report-quick-edit-destroy.mrt
(53.31 KiB) Downloaded 155 times
pobber1
Posts: 19
Joined: Fri Jun 28, 2019 8:39 am

Re: Make image clickable

Post by pobber1 »

Sorry, I forgot to attach the JSON, will upload first thing in the morning....
pobber1
Posts: 19
Joined: Fri Jun 28, 2019 8:39 am

Re: Make image clickable

Post by pobber1 »

Hi Lech,

Please see attached JSON.

Thanks.
Attachments
activity-report-quick-edit.json
(244.28 KiB) Downloaded 143 times
pobber1
Posts: 19
Joined: Fri Jun 28, 2019 8:39 am

Re: Make image clickable

Post by pobber1 »

I managed to get this working by recreating the page and datasource, must have had some setting the viewer didn't like.
Lech Kulikowski
Posts: 7291
Joined: Tue Mar 20, 2018 5:34 am

Re: Make image clickable

Post by Lech Kulikowski »

Hello

Ok.
Please let us know if you need any additional help.

Thank you.
Post Reply