baanjour
11th April 2007, 19:43
On a display session with main table-A, I have added another field from table-B. Both tables have references. I have added a sort option on table-B.field using query.extend.order("table-B.field"). Everything works fine and I can see the records displayed properly.
As soon as I scroll up or down, I get to see duplicate records displayed on the screen, or the sort is no longer working.
When I trace, from the query passed, I can see that the previous and next records are fetched based on table-A._index1.
In the where condition:
where {table-A.field1, table-A.field2} >= {:table-A.field1, :table-A.field2}
order by table-B.field, table-A._index1
Any ideas...
As soon as I scroll up or down, I get to see duplicate records displayed on the screen, or the sort is no longer working.
When I trace, from the query passed, I can see that the previous and next records are fetched based on table-A._index1.
In the where condition:
where {table-A.field1, table-A.field2} >= {:table-A.field1, :table-A.field2}
order by table-B.field, table-A._index1
Any ideas...