On Thursday 15 September 2011 05:54:08 wahono sri wrote:
> The summary of my code like this :
> procedure saverecord;
> begin
> try
>   transaction.savepointbegin;
>   dataset1.append;
>   ...
>   ...
>   dataset1.post;
>   dataset2.append;
>   ...
>   ...
>   dataset2.post;
>   dataset1.applyupdates;
> 
>   >>>>>error from server
> 
>   dataset2.applyupdates;
>   ...
>   transaction.commitretaining;
> except
>   transaction.savepointrollback;
> 
>   >>>>>caused by dataset1 and dataset2 state is set to dsbrowse, than
> 
> I do dataset.edit
>   dataset1.edit;
> end;
> end;
> 
A sequence of insert-post-edit-post-applyupdate still calls "INSERT INTO". 
Maybe the exception happens in dataset2.applyupdates after 
dataset1.applyupdate has been finished and the dataset1.updatebuffer is clear
so the dataset1.edit creates an new ukModify update item?

Martin
_______________________________________________
MSEide-MSEgui-talk mailing list
MSEide-MSEgui-talk@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/mseide-msegui-talk

Reply via email to