Support Forum - Order by key not working

10/13/2009 03:18 Kurt Boller wrote:

     I have a report that is ordered by a complex key and it is not printing in
that order.  It is a MS SQL table but other than that is nothing special.

10/13/2009 04:15 Oleg Fomin wrote:

Kurt,

You can not have FRB report that is ordered by a key. This is true and this is
false. The true because any "key" specified in the file/table schematic of
RunTimeReport procedure will be ignored. The reason is that any particular
report layout based on this VIEW definition can use it's own sort order. To
define sort order in FRB report you have to add one or more "Sorting bands" to
the report layout. Sorting band expression(s) will affect VIEW{Prop:Order}
dynamically at run-time. Clarion database driver will translate it into WHERE
clause of SQL "select" query. MSSQL server engine is smart enough. It uses an
existing key matching the WHERE clause if possible. So, finally, you can have
FRB report that is ordered by a key. And this is because the first settence is
false.

Could you please be more specific what is the problem? 

Thank you,
---
  Oleg Fomin <oleg@fomin.info>

10/13/2009 13:50 Kurt Boller wrote:

Thanks Oleg, the sort band corrected it.  I didn't realize you could not use the
database key as a means of ordering the report's record processing order.

Kurt

Name:
E-Mail: (optional)
Subject:Order by key not working


Message body: