Event detector in Version 2025.3.4

Stimulsoft Reports.JS discussion
Post Reply
franc.siswanto
Posts: 9
Joined: Sun Mar 02, 2025 8:13 am

Event detector in Version 2025.3.4

Post by franc.siswanto »

Hi,

I just tried Version 2025.3.4, and I found something a bit annoying:
Every time I open an existing MRT file and if it has any function even with default content (return "Hello";) and I'm sure that it does not has "event script", the designer will still notify me twice as if it had an "event script":
```
This document uses Events. If the document is from a trusted source, you can click the "Open" button to access it.

If you're unsure about the document's source but still want to view it, you can click the "Open in safe mode" button. In this case, events will be ignored and not executed.
```
Because I often review MRT files from various sources, this is quite annoying and forces me to double-check whether there is an event script or not.

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

Re: Event detector in Version 2025.3.4

Post by Lech Kulikowski »

Hello,

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

Thank you.
franc.siswanto
Posts: 9
Joined: Sun Mar 02, 2025 8:13 am

Re: Event detector in Version 2025.3.4

Post by franc.siswanto »

Alright then
Attachments
Rptwithfunction.mrt
(17.27 KiB) Downloaded 22 times
Lech Kulikowski
Posts: 7424
Joined: Tue Mar 20, 2018 5:34 am

Re: Event detector in Version 2025.3.4

Post by Lech Kulikowski »

Hello,

Please try to check the new build 2025.3.5

Thank you.
franc.siswanto
Posts: 9
Joined: Sun Mar 02, 2025 8:13 am

Re: Event detector in Version 2025.3.4

Post by franc.siswanto »

Thank you for your efforts. Unfortunately, if you have custom function and no event script,
the event script warning notification still appears when open the report.

Steps to reproduce:
- Use designer base on https://cdn.jsdelivr.net/npm/stimulsoft ... er.pack.js and it's associates
- Create a new blank report then save and close the report as is.
- Open the report and there is no warning notification. This is correct.
- Now create custom function as it is and save and close the report.
- Open the report and there is warning notification. This is incorrect.

I don't mean to upset you or anything, but this is an issue, and I apologize for it.
I'm not asking for an immediate fix, just include it on the agenda for the next release please,
as I'm currently still comfortable with 2025.2.5 (the warning notification issue has been around since 2025.3.1).

Thank you
Max Shamanov
Posts: 1025
Joined: Tue Sep 07, 2021 10:11 am

Re: Event detector in Version 2025.3.4

Post by Max Shamanov »

Hello.

We would need more time to get an answer for you.
We will let you know when we get any results.

Thank you.
franc.siswanto
Posts: 9
Joined: Sun Mar 02, 2025 8:13 am

Re: Event detector in Version 2025.3.4

Post by franc.siswanto »

OK Max. Take your time.

From: Francis Siswanto
Max Shamanov
Posts: 1025
Joined: Tue Sep 07, 2021 10:11 am

Re: Event detector in Version 2025.3.4

Post by Max Shamanov »

Hello, Francis.

After thoroughly examining the issue, we can say the following.
Any use of third-party code, both in report events and in User Functions in the JS designer, will display this window.
This is done on purpose; we will rename the option in the settings so that it reflects the general name of the code usage and not just events.
If you do not need this window, you can disable it in the designer settings.

Thank you.
franc.siswanto
Posts: 9
Joined: Sun Mar 02, 2025 8:13 am

Re: Event detector in Version 2025.3.4

Post by franc.siswanto »

Hello Max,

Okay, I get it now. You just want to notify that a User Function or Event Script exists. Since you want to rename the option of this matter, if I may make a suggestion regarding "Options":
- It would be better if the User Function exists Notification was displayed when the User Function is used somewhere, rather than just having the User Function present even when it's not used.
- It would also be better if the Options window could be displayed without having to open a report file or create a new report first, since the Options window is clearly intended for the Designer itself, not the currently open report file.
- Currently, if I open a report file and change a value in the Options window, then close the report without any modifications, the Designer will notify me that the report has changed, even though it hasn't.

Thank you.
Max Shamanov
Posts: 1025
Joined: Tue Sep 07, 2021 10:11 am

Re: Event detector in Version 2025.3.4

Post by Max Shamanov »

Hello, Francis.

Thank you for your suggestions.
At the moment, everything remains as it is, but there may be changes in future versions.

Thank you.
Post Reply