Master/Detail events are not firing properly
Posted: Fri 16 Feb 2007 07:10
Hi,
We are having SDAC source code of 3.80.0.32.
I observed that Master/Detail events are not firing properly.
So i just modified code in dbaccess.pm file.
Can you please confirm that the code which i have written will effect any where. I'm just closing and opening a dataset to fire the events of detail query component.
In a procedure "TDADetailDataLink.ActiveChanged" added below code
if FDataSet.Active and
not (csDestroying in FDataSet.ComponentState) and Active then
begin
// Added code Close/Open, so events of Detail Query will get fire
if ((FDataSet nil) and (FDataSet.Active) and (FDataSet.State dsSetKey)) then
begin
FDataSet.Close;
FDataSet.Open;
end;
//End Adding.
FDataSet.RefreshParams;
Please confirm......
We are having SDAC source code of 3.80.0.32.
I observed that Master/Detail events are not firing properly.
So i just modified code in dbaccess.pm file.
Can you please confirm that the code which i have written will effect any where. I'm just closing and opening a dataset to fire the events of detail query component.
In a procedure "TDADetailDataLink.ActiveChanged" added below code
if FDataSet.Active and
not (csDestroying in FDataSet.ComponentState) and Active then
begin
// Added code Close/Open, so events of Detail Query will get fire
if ((FDataSet nil) and (FDataSet.Active) and (FDataSet.State dsSetKey)) then
begin
FDataSet.Close;
FDataSet.Open;
end;
//End Adding.
FDataSet.RefreshParams;
Please confirm......