You are not logged in.
Pages: 1
AB,
I have a application client/server. On the client side, I send the data to be updated on the server. On the server side, get the information and update the database.
My question is how I can get the update error to send to the customer?
Server:
function TServiceRemoteSQL.fn_UpdateRecord(AData: RawUTF8): RawUTF8;
var
v_sqlrc: TSQLRecord;
begin
....
v_sqlrc := TSQLRecordClass(MyClass).CreateAndFillPrepare(AData);
frmDMServer.fProps.ThreadSafeConnection.StartTransaction;
while v_sqlrc.FillOne do
begin
if not frmDMServer.aServerDB.Update(v_sqlrc) then
begin
Result := 'Not Update';
v_sqlrc.Free;
frmDMServer.fProps.ThreadSafeConnection.Rollback;
Exit;
end;
end;
....
end;
Offline
some help?
Offline
About error handling at interface-based service level, see the documentation.
Offline
Pages: 1