Subject Re: [IBO] TBlobField in IBOQuery with CachedUpdates=True
Author Helen Borrie
At 04:00 PM 27/09/2007, you wrote:
>--- 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;

// the above puts quPOItem into dsBrowse!

> 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])

// at this point, if your frmUnitCost code has not called Insert or
Edit for quPOItem then the State of the dataset is dsBrowse.....

>then
>dmGOS.quPoItem.Post;

// and if the state is dsBrowse, the DBMemo will not update the dataset.

> end;
> end;
>end;

Maybe you need to give more information about your Blob editing form.

Helen