Subject Re: [IBO] Why DefaultDMLCatchRecieveItem Fetches all records from server when ItemType is ditInsert !!??
Author IB Objects
> while using DefaultDMLCacheReceivedItem function in my query's
> OnDMLCacheReceivedItem event i found ( with TIB_Monitor ) that
> TIB_Query fetches all record from server again(while ItemType is
ditInsert)
>
> and what i want is just fetch only required record ( whose id is specified
> in ADMLCacheItem )
>
>
> is there any way to manually insert a record into query's internal buffer
?

That's a feature I'm working on but it isn't ready yet.

The method is already there but not fully implemented, and in fact probably
has an exception in it. It is called InsertBuffer or something like that.
You may see what I've done so far and be brave and modify the code and try
it out.

I'll add this email as a notch up in priority for this capability. This
should make DML caching pretty well complete once this is in place. The
tricky part is getting it to put the record in the right position in the
buffer. At the same time I am going to try and work on cached datasets and
client-side sorting of records.

Regards,
Jason Wharton
http://www.ibobjects.com