Hello, I have created a report layout with the Stimulsoft Designer 2024.3.2
In my report, I have a set of Parameters to be input by user. The types of these Parameters are: string | Nullable Value
With this type, at the Preview Screen, the user can Untick the parameter input field's checkbox so that it is treated as NULL.
These parameters will be used for DataSource's Stored Procedure Parameter.
However, when I use the Report Viewer from Reports.Web.NetCore in my Web Application, I can't set NULL to these parameters.
I have tried below code in HomeController, but it will still set the parameter as EmptyString instead of NULL:
StiReport report = new StiReport();
report.Load(StiNetCoreHelper.MapPath(this, "Reports/MyReport.mrt"))
report.Dictionary.Variables["Code"].ValueObject = null;
report.Dictionary.Variables["Date"].ValueObject = "2024-06-01 00:00:00";
The Parameter - Date value is successfully set with the value of 2024-06-01, but the Parameter - Code is set with empty string.
Please help.
Passing NULL value as Parameter when retrieving report from .NETCore code
-
- Posts: 7333
- Joined: Tue Mar 20, 2018 5:34 am
Re: Passing NULL value as Parameter when retrieving report from .NETCore code
Hello,
We require more time to investigate the issue thoroughly. Rest assured, we will keep you informed about the outcome as soon as possible.
Thank you.
We require more time to investigate the issue thoroughly. Rest assured, we will keep you informed about the outcome as soon as possible.
Thank you.