Subject Re: [IBO] TBlobField in IBOQuery with CachedUpdates=True
Author earnesttse
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@...> wrote:
>
> At 02:51 PM 27/09/2007, you wrote:
>
> Is the datasource of the DBMemo the SAME datasource as the one for
the grid?

Yes.

> When I asked "please show", I meant show the code that updates the
dataset.

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