Subject | Re: [IBO] Inserting records and computed fields |
---|---|
Author | Craig Leonardi |
Post date | 2001-08-27T12:04:58Z |
>No.
> Is the only way to post dssInsert state and put the document dataset in
> dssEdit state within the same transaction?
>
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