Subject Re: [IBO] Inserting records and computed fields
Author Craig Leonardi
>
> Is the only way to post dssInsert state and put the document dataset in
> dssEdit state within the same transaction?
>
No.

You can also calculate the values on the client side and stuff those
results into the computed fields using the FieldsByName(xxx).AsXXXX
functions. This will make your grid appear correct. However, when
you post the insert, the server-calculated values will be stored.

I prefer the method you suggested. When I do this, I use the
following sequence:

with quMyDataSource do
begin
DisableControls
try
Post
Edit
finally
EnableControls
end
end

This is very, very fast and because the controls are disabled,
there is no visual clue as to what has occured.

HTH, Craig