Event scripts not working in JS Viewer

Stimulsoft Reports.JS discussion
Post Reply
Algis
Posts: 1
Joined: Thu Feb 28, 2019 4:46 pm

Event scripts not working in JS Viewer

Post by Algis »

We have Script in GetHyperlinkEvent:

Code: Select all

if(Checks.ControlType=="DOCUMENT") {
	e.Value = Checks.Answer;
} else {
	e.Value = null;
}
It works as expected when Previewing in Default and HTML Previews but does not work in JS Preview.
I can't find anything mentioned in documentation regards Event Scripting...

Any hints what we are doing wrong or reference to the working sample?

Regards,
Algis
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: Event scripts not working in JS Viewer

Post by Lech Kulikowski »

Hello,

Unfortunately, in the JS version, scripts in events are not supported.

Thank you.
JeffersonValim
Posts: 7
Joined: Wed Dec 15, 2021 10:05 pm

Re: Event scripts not working in JS Viewer

Post by JeffersonValim »

Lech Kulikowski wrote: Fri Mar 01, 2019 2:19 pm Hello,

Unfortunately, in the JS version, scripts in events are not supported.

Thank you.
Does it will be supported in the future?
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: Event scripts not working in JS Viewer

Post by Lech Kulikowski »

Hello,

You can use the Blockly feature
https://www.stimulsoft.com/en/blog/arti ... t-designer

Thank you.
Post Reply