|Subject||Re: No Reply... Second try... Fw: [IBO] TIBOQuery.Edit would must to call always AfterPost with Next call|
> When I put TIBOQuery in dsEdit state with Edit call by example, II am not sure that I understand what you mean about "lose the
> understand that if I do TIBOQuery.Next the AfterPost by example
> would must to be called although I haven't changes in the fields.
> The example is simple, a master detail relation and when the detail
> is edited the master is forced to edit state and in the master
> AfterPost I call to commitretaining, now I lose the changes.
changes". How are you losing changes?
If you want to prevent posts when the row is not changed, you need to
check the Modified property of the dataset. You may be able to
achieve what you want in the BeforeScroll event, by checking if
the dataset is Modified and calling Post or Cancel as required.