Variables initialization

Stimulsoft Reports.JS discussion
Post Reply
peter.sulo
Posts: 15
Joined: Thu Jun 20, 2024 2:33 pm

Variables initialization

Post by peter.sulo »

Hello,

we encountered a problem with variables initialization by an expression.
When initializing variable with an expression like "Today.AddDays(-0.75)", the label in the variable form input displays current date and time instead of date/time given by that expression. However the date and time displayed in the report sheet seems to be correct as you can see in the pictures below. This can be quite confusing for users.

Correct display as in desktop Stimulsoft Designer
Snímka obrazovky 2026-03-26 o 14.44.48.png
Snímka obrazovky 2026-03-26 o 14.44.48.png (17.4 KiB) Viewed 189 times
Wrong display when using stimulsoft dashboards js 2026.1.6
Snímka obrazovky 2026-03-26 o 14.43.13.png
Snímka obrazovky 2026-03-26 o 14.43.13.png (62.09 KiB) Viewed 189 times
Thank you
Attachments
datetime_variables.mrt
(5.25 KiB) Downloaded 4 times
Lech Kulikowski
Posts: 7720
Joined: Tue Mar 20, 2018 5:34 am

Re: Variables initialization

Post by Lech Kulikowski »

Hello,

We have been able to reproduce the issue, but it will require more time to resolve. Rest assured that we will keep you informed of our progress and let you know the results as soon as possible.

Thank you.
#19804
Post Reply