Version 2019.2.3 set variables valueObject keep null

Stimulsoft Reports.JS discussion
Post Reply
trcadmin
Posts: 20
Joined: Mon Apr 08, 2019 9:14 am

Version 2019.2.3 set variables valueObject keep null

Post by trcadmin »

Hi,

Here is the code which run well in version 2018.3.3.

report.dictionary.variables.getByName("id").valueObject = 24.01;

When i debug the valueObject keep getting null.

Thank you for your help.

Seng
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Version 2019.2.3 set variables valueObject keep null

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue.
Please send us a sample which reproduces the issue for analysis.

Thank you.
trcadmin
Posts: 20
Joined: Mon Apr 08, 2019 9:14 am

Re: Version 2019.2.3 set variables valueObject keep null

Post by trcadmin »

Hi,

I'm trying to pass variable to execute the store procedure as below.

exec storeprocedurename {id}

When passing parameter on code we should code like below, but it keep get null value on latest Version 2019.2.3.
Previous version can get the value.

var report = new window.Stimulsoft.Report.StiReport();
report.dictionary.variables.getByName("id").valueObject = 24.01;

Hope u can understand. Thank you.

Seng
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Version 2019.2.3 set variables valueObject keep null

Post by HighAley »

Hello.

When you create a new report instance there is no any variable in it.
You should load a report template with the variable or create the variable.

Thank you.
trcadmin
Posts: 20
Joined: Mon Apr 08, 2019 9:14 am

Re: Version 2019.2.3 set variables valueObject keep null

Post by trcadmin »

Hi,

Yes, I have created a variable in the report template which name it as 'id'.
The issue is i cant set the variable value as below:-
report.dictionary.variables.getByName("id").valueObject
It keep return null value.

Thank you.
Lech Kulikowski
Posts: 6245
Joined: Tue Mar 20, 2018 5:34 am

Re: Version 2019.2.3 set variables valueObject keep null

Post by Lech Kulikowski »

Hello,

Please show us your code to load and run a report or send us a sample which reproduces the issue for analysis.

Thank you.
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Version 2019.2.3 set variables valueObject keep null

Post by HighAley »

Hello,

We have made an improvement.
Please, check our next build.

Thank you.
Post Reply