You are not logged in.
Pages: 1
My application is client / server.
On the side of the client I use TClientDataSet.
I'm trying to do a routine check for updates to the database.
so do:
procedure TForm1.Timer1Timer(Sender: TObject);
var
v: TSQLTableJSON;
v1: boolean;
v2: Rawutf8;
begin
v1: = True;
v2: = DataSetToJSON (MyClientDataSet);
v: = TSQLTableJSON.Create ('',pointer (v2), length (v2));
if frmDM.fRestClient.UpdateFromServer ([v], v1) then
// change records;
end;
Always informs that there was no update, even if another client update a record.
What am I doing wrong?
Offline
Thanks
Offline
Ab,
I'm not getting it.
Please help me give way as I do. I need a routine that, from time to time, check if there are updates on records that users are accessing
Offline
Pages: 1