El caso es que la estructura del programa es algo así , con ClientDataSet de detalle .
Código Delphi
[-]
Client1.post.
if not ClientDetalle.isEmpty then
begin
while not ClientDetalle.eof do
begin
ClientDetalle.post;
end;
end;
if (Client1.ApplyUpdates(0) = 0) and (ClientDetalle.ApplyUpdate(0)=0) then
begin
Commit;
Result := True;
end
else
begin
Rollback;
Result := False;
end;
Bueno , pues eso , ya para poner el código definitivo , me gustaria saber si lo anterior por lo que habeis comentado es ya lo correcto.