Subject | Re: [IBO] TBlobField in IBOQuery with CachedUpdates=True |
---|---|
Author | earnesttse |
Post date | 2007-09-27T06:00:56Z |
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@...> wrote:
Yes.
Sorry, the code as follows:
procedure TfmPo.ShowDetail;
begin
if not dmGOS.quPoItem.IsEmpty then begin
if not wwDBGrid1.IsSelected then wwDBGrid1.SetFocus;
if (dmGOS.quPo.State in [dsInsert, dsEdit]) then begin
if dmGOS.quPoItem.State in [dsInsert, dsEdit] then
dmGOS.quPoItem.Post;
end;
if fmUnitCost.ShowModal <> mrOk then begin
if (dmGOS.quPoItem.State in [dsInsert, dsEdit]) then
dmGOS.quPoItem.Cancel;
end else begin
if (dmGOS.quPoItem.State in [dsInsert, dsEdit]) then
dmGOS.quPoItem.Post;
end;
end;
end;
Thanks!
Regards,
Earnest
>the grid?
> At 02:51 PM 27/09/2007, you wrote:
>
> Is the datasource of the DBMemo the SAME datasource as the one for
Yes.
> When I asked "please show", I meant show the code that updates thedataset.
Sorry, the code as follows:
procedure TfmPo.ShowDetail;
begin
if not dmGOS.quPoItem.IsEmpty then begin
if not wwDBGrid1.IsSelected then wwDBGrid1.SetFocus;
if (dmGOS.quPo.State in [dsInsert, dsEdit]) then begin
if dmGOS.quPoItem.State in [dsInsert, dsEdit] then
dmGOS.quPoItem.Post;
end;
if fmUnitCost.ShowModal <> mrOk then begin
if (dmGOS.quPoItem.State in [dsInsert, dsEdit]) then
dmGOS.quPoItem.Cancel;
end else begin
if (dmGOS.quPoItem.State in [dsInsert, dsEdit]) then
dmGOS.quPoItem.Post;
end;
end;
end;
Thanks!
Regards,
Earnest