Create new JS function not working on ver. 2026.1.1

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

Create new JS function not working on ver. 2026.1.1

Post by franc.siswanto »

Hi,
When I use version 2026.1.1 now, and create a new blank report, then create a new JS function (not C#), it seems that the new editor uses C# by default even though I choose JS. Finally the result is not displayed.
I can not send sample report since I can not create JS function even in the new blank report.

This issue is the same as what I mentioned in the URL: viewtopic.php?p=174086#p174086

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

Re: Create new JS function not working on ver. 2026.1.1

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue. Please clarify how do you run the designer.

Thank you.
Attachments
Screenshot 2025-12-29 230221.png
Screenshot 2025-12-29 230221.png (217.95 KiB) Viewed 199 times
franc.siswanto
Posts: 18
Joined: Sun Mar 02, 2025 8:13 am

Re: Create new JS function not working on ver. 2026.1.1

Post by franc.siswanto »

Hello,

Okay, I'll explain the problem as best I can, so I'll send you a short video to illustrate it.
Thank you.

JS Function not working.mp4
(11.46 MiB) Downloaded 13 times
Lech Kulikowski
Posts: 7587
Joined: Tue Mar 20, 2018 5:34 am

Re: Create new JS function not working on ver. 2026.1.1

Post by Lech Kulikowski »

Hello,

Please check the ScriptLanguage property of the report. By default, it is set to the CSharp that allows uses our new parser.

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

Re: Create new JS function not working on ver. 2026.1.1

Post by franc.siswanto »

Hi,

I don't understand what you mean by this "By default, it is set to the CSharp that allows uses our new parser.". Since I'm not intend to use CSharp, I just want to use JS as usual I do every time. In my clip it is clearly I try to use JS but fail.

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

Re: Create new JS function not working on ver. 2026.1.1

Post by Lech Kulikowski »

Hello,

Please check the ScriptLanguage property of the report.

Thank you.
Attachments
Screenshot 2025-12-30 162529.png
Screenshot 2025-12-30 162529.png (196.92 KiB) Viewed 155 times
franc.siswanto
Posts: 18
Joined: Sun Mar 02, 2025 8:13 am

Re: Create new JS function not working on ver. 2026.1.1

Post by franc.siswanto »

Hello,

Now I understand, thank you. Since I'm used to using the Designer JS Web version using CDN URL, I expected the default ScriptLanguage to be JS when creating a new report, but it turned out to be C#. But that's okay, because now I understand.
I also noticed that when I open older versions of the mrt file, such as version 2025.3.1, I see that the ScriptLanguage has value of "Platform" instead of C#, JS, VB, or Blockly. Fortunately, the existing JS functions still work, although it's a bit confusing if I want to add new functions later on, which function platform it will use, but since this is an old report, I'm not changing it as long as it still works.

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

Re: Create new JS function not working on ver. 2026.1.1

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply