Jump to content
Sign in to follow this  
WalkingAway

RefreshUnknownRecord, FDQuery

Recommended Posts

Hi.

 

I use the RefreshUnknownRecord function to manually add rows (bypassing Fetch) together with "normal" Fetch (with fmOnDemand and RecsMax, RowSize etc.).

I have side effect, I will try to describe it:

1) Fetched first 100 tuples (let say Id is from 1 to 100)

2) With RefreshUnknownRecord added row with id = 101

3) Fetched second 100 tuples (id from 101 to 200).

In this situation I have row 101 duplicated.

 

Is there any way to awoid this? I think to implement some kind of array of variant for keeping records added with RefreshUnknownRecord and checking in OnFecth event and skeep them (as already present).

 

Thank you.

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×