xsharp.eu • Notify - simple question
Page 1 of 1

Notify - simple question

Posted: Fri Feb 11, 2022 2:19 pm
by Kees Bouw
When the same database is opened in two different methods, with a local DbServer in both methods, and a record is added in one method, it is not visible in the other method. I have tried a Notify(NOTIFYFILECHANGE) but that does not seem to work. How can I inform one method that a record has been added in the other, or "refresh" the local DbServer?

Notify - simple question

Posted: Sat Feb 12, 2022 5:53 am
by wriedmann
Hi Kees,
the record is really added? That means: the first dbserver is moved away from the added record or do you have used a Commit() call?
And what control do you are using in the second window? A BBrowser control? Normally a Notify( NOTIFIYFILECHANGE ) helps, at least in my cases. Or do you have a SuspendNotification() active?
Wolfgang

Notify - simple question

Posted: Mon Feb 14, 2022 8:46 am
by Kees Bouw
Thank you for your reply, Wolfgang. After some more experimenting it seems that the record is indeed visible in the second method. However, the RecCount / LastRec properties are not updated. But even though the RecCount / LastRec is one short, the new record can still be accessed and contains the correct data.

Notify - simple question

Posted: Mon Feb 14, 2022 3:46 pm
by ic2
Hello Robert, Chris,
KeesIC2 wrote:However, the RecCount / LastRec properties are not updated.
Is this a known issue to you?

It should be updated like in VO.

Dick

Notify - simple question

Posted: Mon Feb 14, 2022 4:24 pm
by Chris
Hi Dick,

Sorry, not aware of such a problem. Can you please send a sample reproducing the difference to VO?

.