asp.net core Date Variable shows as NaN.NaN.NaN

Stimulsoft Reports.WEB discussion
angelcalvasp
Posts: 25
Joined: Fri Nov 10, 2017 9:48 pm

asp.net core Date Variable shows as NaN.NaN.NaN

Post by angelcalvasp »

I have declared two variables Fromdate and TwoDate in a report in the report designer as so
Variable.png
Variable.png (12.83 KiB) Viewed 4601 times
when I preview it on the designer it shows up correctly but when I use it on a asp.net core project the variables show up and I can interact with them

but the value shows up as NaN.NaN.NaN on both dates
Generated report.png
Generated report.png (15.31 KiB) Viewed 4601 times
my code on the controller is

Code: Select all

public IActionResult GetReport()
        {

            var reportParameters = new Hashtable();
            reportParameters["FromDate"] = DateTime.Now.Date;
            reportParameters["ToDate"] = DateTime.Now.Date;

            string reportString = System.IO.File.ReadAllText(_hostEnvironment.WebRootPath + "\\reports\\DailySalesDetail.mrt");
            return StiNetCoreViewer.GetReportResult(this, reportString, reportParameters);
        }

is this a bug or am I missing something
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Post by Alex K. »

Hello,

We couldn't reproduce this bug.
Please try to check the last release

Thank you.
angelcalvasp
Posts: 25
Joined: Fri Nov 10, 2017 9:48 pm

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Post by angelcalvasp »

I have attached a sample project with the Nuget Package up to date, the problem still persists,

the current version of the Designer Im using is
Stimulsoft Designer Version.png
Stimulsoft Designer Version.png (8.26 KiB) Viewed 4585 times
Attachments
Manage-Report-Parameters-and-Interactions.rar
Sample Project
(1.15 MiB) Downloaded 168 times
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Post by HighAley »

Hello.

Our latest build is 2017.2.4.
Please, upgrade to this build and let us know about results.

Thank you.
angelcalvasp
Posts: 25
Joined: Fri Nov 10, 2017 9:48 pm

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Post by angelcalvasp »

Version 2018.1.1 and problem still persists, Could it be a Bug on the .net core version of the package?
HighAley
Posts: 8431
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Post by HighAley »

Hello.

We will make additional analysis of your project and will answer you soon.

Thank you.

Ticket reference: #5486
angelcalvasp
Posts: 25
Joined: Fri Nov 10, 2017 9:48 pm

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Post by angelcalvasp »

This little thing is the only thing thats keeping me from getting the reporting tools
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Post by Alex K. »

Hello,

We are working on the problem. We will let you know when the solution is available.

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

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Post by HighAley »

Hello.

We have made an improvement.
Please, check the 2018.1.4 build.
You could update JS scripts only.

Thank you.
angelcalvasp
Posts: 25
Joined: Fri Nov 10, 2017 9:48 pm

Re: asp.net core Date Variable shows as NaN.NaN.NaN

Post by angelcalvasp »

Ill check it out
Post Reply