Problem with sorting

Stimulsoft Reports.NET discussion
Post Reply
rlacko
Posts: 11
Joined: Fri May 24, 2013 10:39 am

Problem with sorting

Post by rlacko »

Hi,

i have a problem with sorting on DataBand, when I use Count function from other Databand.
I have databand "DataBandUchazec" and detail databand "DataBandUdaje".
In DataSource "PrijimaciRizeniUchazec" i have calculated column "SumaZnamek" that use Count function on databand "DataBandUdaje" (see the first attached image - "databand-sorting-calculated-column.png").
On DataSource "PrijimaciRizeniUchazec" i use sort by calculated column "SumaZnamek" (see the second attached image - "databand-sorting.png"), but sorting not working (see the third attached image - "databand-sorting-calculated-column.png").

What am I doing wrong?

In attachments i send MRT file and XML data.
I use Stimulsoft Report.Net version 2013.3.1800 and Stimulsoft Report.Web version 2014.1.1807.0.

Thanks, for help
Attachments
Řazení.xml
(20.95 KiB) Downloaded 199 times
Řazení.mrt
(16.87 KiB) Downloaded 253 times
databand-sorting-output.png
databand-sorting-output.png (151.83 KiB) Viewed 2696 times
databand-sorting.png
databand-sorting.png (169.63 KiB) Viewed 2696 times
databand-sorting-calculated-column.png
databand-sorting-calculated-column.png (195.75 KiB) Viewed 2696 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem with sorting

Post by Alex K. »

Hello,

Unfortunatley, it is not possible to use the Calculated columns in sorting, filtering.

Thank you.
rlacko
Posts: 11
Joined: Fri May 24, 2013 10:39 am

Re: Problem with sorting

Post by rlacko »

Thanks for your answer.

Is there any other solution? For example do not use calculated column and use just expression in text field?

Thank you.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Problem with sorting

Post by Alex K. »

Hello,

In your report the CalculationMode property set as Interpretation. For this mode there is no solution with current data.
For Compilation mode you can use the following expression in the Sorting for DataBandUchazec band:
Totals.Count(DataBandUdaje)

Thank you.
Attachments
Capture.PNG
Capture.PNG (22.33 KiB) Viewed 2676 times
rlacko
Posts: 11
Joined: Fri May 24, 2013 10:39 am

Re: Problem with sorting

Post by rlacko »

OK,

Thank you.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Problem with sorting

Post by Andrew »

Hello,

Do not hesitate to contact us in case you have additional questions.
Thank you.
Post Reply