Page 1 of 2

After Update sort is not working with date values

Posted: Fri Apr 26, 2024 2:49 pm
by peda
Before we make update all date colums was as string in Stimulsoft and date Sorting was working.

After Update date colum is also string but now it sorting like a realy string.
So we must edit all reports to change date colum from string to datetime.

Is it a easier way to do this ?

Thanks for help

Best regards Peter

Re: After Update sort is not working with date values

Posted: Mon Apr 29, 2024 8:45 am
by Lech Kulikowski
Hello Peter,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.

Re: After Update sort is not working with date values

Posted: Mon Apr 29, 2024 9:44 am
by peda
Hi Lech

Its simple to reproduces the issue.
We have in Datatables a field named "date" (its realy a date field but in all reports its a string datatype)

When i have a datatable and make sorting by date (datatyp = string) sorting = wrong
When i habe a datatable and make sorting by date (datatyp = datetime) sorting = working

In older Versions it was working correct and also when datatyp = string sorting correct. I think it automaticly checked its a datetime datatype.
In new Version it use this as string and sorting is wrong.

The Solution is to change all Reports with field date from string to datetime. But we habe so many reports so it will be very difficult to change all reports.

Sorting date as datetime = correct:
2024-04-28
2024-04-29
2024-04-30
2024-05-01
2024-05-02
Sorting date as string = wrong
2024-05-01
2024-05-02
2024-04-28
2024-04-29
2024-04-30

Perhaps is a solution, so we don't change all Reports.

Thanks Peter

Re: After Update sort is not working with date values

Posted: Tue Apr 30, 2024 10:26 am
by Lech Kulikowski
Hello Peter,

We couldn't reproduce the issue on our test data.
Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.

Re: After Update sort is not working with date values

Posted: Mon May 13, 2024 2:10 pm
by Flo
Hi Lech,

I was also able to reproduce the error.
Attached is an example report.


Date field (not working):
Image

Sort not working:
Image

Date field (working)
Image

Sort working with correct date field:
Image

Thanks in advance.
Florian

Re: After Update sort is not working with date values

Posted: Tue May 14, 2024 7:38 pm
by Lech Kulikowski
Hello,

Please send us test data for your report.

Thank you.

Re: After Update sort is not working with date values

Posted: Tue May 21, 2024 9:59 am
by Flo
Hi Lech,

here I send you the report including the data.

Thanks in advance.
Florian

Re: After Update sort is not working with date values

Posted: Tue May 21, 2024 1:28 pm
by Lech Kulikowski
Hello,

It is the rendered report.
Please send us a sample report with test data that we can check and run, and reproduce the issue.

Thank you.

Re: After Update sort is not working with date values

Posted: Wed May 22, 2024 6:25 am
by Flo
Hi Lech,

here I send you the report and the data.

Thanks in advance.
Florian

Re: After Update sort is not working with date values

Posted: Wed May 22, 2024 8:10 pm
by Lech Kulikowski
Hello,

Thank you for the sample. We need some time to investigate the issue.

Thank you.
#14499