Subject Re: [IBO] Index order
Author Robert martin
Hi Helen

Once again i am afraid the answer is..... I am using an IBOTable component (because I am slowly converting an application from BDE /xBase to IBO / FB.

I assumed that setting the IndexName property of an IBOTable would actually be converted into an SQL Order by clause at some point.

I have changed my refresh to RefreshKeys and every seems to work fine, IBOTable doesn't appear to have a FetchAllRows property. I will just leave it like this :)


Rob Martin
Software Engineer

phone +64 03 377 0495
fax +64 03 377 0496
web www.chreos.com
Wild Software Ltd
----- Original Message -----
From: Helen Borrie
To: IBObjects@yahoogroups.com
Sent: Thursday, December 09, 2004 3:44 PM
Subject: Re: [IBO] Index order


At 02:24 PM 9/12/2004 +1300, you wrote:

>Hi Woody
>
>Sorry about the delay, been in a meeting. I get your posts fine here :)
>
>The current system (bear in mind its a conversion from BDE / xBase) uses
>the following index
>
>LineOrder -> Rank, SubRank
>
>Each item gets a rank from 1 upwards. Discount and Freight get a much
>larger number. So the items always show in entered order and if discount
>etc is entered it appears at the bottom.

Sets in Fb/IB get their ordering from the ORDER BY clause, one way or
another, not from indexes.

I've been watching this thread and wondering why you have such a horror of
a refresh? If your KeyLinks are good, you will get what you want by
defining the appropriate ORDER BY clause, setting FetchAllRows false and
calling RefreshKeys. It's so minimal that, unless the server is on a slow
link, like dialup or ADSL, all the user will see on Post/Autocommit +
RefreshKeys is the new row jumping to its proper position in the grid when
they do whatever it is they do to post a row.

You will probably also want to set RefreshAction to determine where the
cursor lands after the Refresh.

Helen




[Non-text portions of this message have been removed]