Sorting by calculated field does not work
Sorting by calculated field does not work
I create a calculated 'qty' field as TFloatField in TZQuery.
OnCalcFields
Queryqty.Value := 4;
When sorting
FieldName := FixFieldName('qty') + ' Asc'
TZAbstractRODataset(ADataSet).SortedFields:=FieldName;
Error appears
OnCalcFields
Queryqty.Value := 4;
When sorting
FieldName := FixFieldName('qty') + ' Asc'
TZAbstractRODataset(ADataSet).SortedFields:=FieldName;
Error appears
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Sorting by calculated field does not work
Hello,
which version of Zeos do you use? I seem to remember thios was a problem in Zeos 7.2. But I thought it was fixed for Zeos 8.
Which error message do you get?
Which version of Delphi or Lazarus / Freepascal do you use?
Can you provide a small sample application?
With best regards,
Jan
which version of Zeos do you use? I seem to remember thios was a problem in Zeos 7.2. But I thought it was fixed for Zeos 8.
Which error message do you get?
Which version of Delphi or Lazarus / Freepascal do you use?
Can you provide a small sample application?
With best regards,
Jan
Re: Sorting by calculated field does not work
ERROR: ACCESS VIOLATION
lazarus-3.2-fpc-3.2.2-win64
zeos 8.0 last
http://svn.code.sf.net/p/zeoslib/code-0 ... .0-patches
Sample project:
https://disk.yandex.ru/d/o8XHP42Xq0-Z8Q
lazarus-3.2-fpc-3.2.2-win64
zeos 8.0 last
http://svn.code.sf.net/p/zeoslib/code-0 ... .0-patches
Sample project:
https://disk.yandex.ru/d/o8XHP42Xq0-Z8Q
Last edited by alexkam75 on 10.04.2024, 15:05, edited 2 times in total.
Re: Sorting by calculated field does not work
Sorting by calculated field does not work. Example attached.
Re: Sorting by calculated field does not work
The error occurs in the file\src\dbc\ZDbcCache.pas
Re: Sorting by calculated field does not work
You do not have the required permissions to view the files attached to this post.
Re: Sorting by calculated field does not work
Error executing CurrentRows.Sort(HighLevelSort)
procedure TZAbstractRODataset.InternalSort;
in src\component\ZAbstractRODataset.pas
procedure TZAbstractRODataset.InternalSort;
in src\component\ZAbstractRODataset.pas
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Sorting by calculated field does not work
Hello,
there seems to be an hard to fix issue with the way we handle calculated fields. We are currently investigating this. I willanswe when we have a solution ready.
With best regards,
Jan
there seems to be an hard to fix issue with the way we handle calculated fields. We are currently investigating this. I willanswe when we have a solution ready.
With best regards,
Jan
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: Sorting by calculated field does not work
Hello,
we think we solved your problem. Could you please check if the latest 8.0-patches branch works for you?
Best regards,
Jan
we think we solved your problem. Could you please check if the latest 8.0-patches branch works for you?
Best regards,
Jan
Re: Sorting by calculated field does not work
Thank you. Sorting works.