what do you mean by "full information of update"?
for example : UPDATE MACCHINE SET INFO_CLI = 'Pippo' WHERE (COD_MAC = 'DP145667')
As stated in documentation: http://www.tmssoftware.biz/business/remotedb/doc/web/server-side-events.html you also have the Params property which allows you to retrieve the values:
for Param in Info.Params do
Log(Param.ToString);
Wagner how can i declare Param ? if Param:TEnumerable give me an error : [dcc32 Error] d_DM0.pas(582): E2010 Incompatible types: 'System.Generics.Collections.TEnumerable<Aurelius.Drivers.Interfaces.TDBParam>' and 'TDBParam'
Param
is of type TDBParam
:
var
Param: TDBParam;
...
for Param in Info.Params do
Log(Param.ToString);
``
Excuse me wagner can i have a complete sample to get the value of params :p1 and :w1 of UPDATE MACCHINE SET INFO_CLI = :p1 WHERE (COD_MAC = :w1) , please ?
I dont known how use your code.
Thx
This is one simple example:
procedure TForm1.RemoteDBServer1BeforeStatement(Sender: TObject;
Info: IStatementInfo);
var
Param: TDBParam;
begin
Log(Info.Sql);
if Info.Params <> nil then
for Param in Info.Params do
Log(Param.ToString);
end;
However we detected an issue with current version, Params are not being passed to the event. A fix will be included in next release.
indeed doesn't go, params is not passed !
with new version corrected this problem ?