TXDataWebDataSet ApplyUpdate

Hi!


for the example let's assume we have a table like this

Id: integer auto increment
Description: varchar

and in the code we have

ds: TXDataWebDataSet; 

If the code executes

ds.Append;
ds.FieldByName('Description').AsString := 'test';
ds.Post;
ds.ApplyUpdates;

How do I get the Id after ApplyUpdate? 

My goal is to get the Id value of the just inserted row to use it for additional tasks when closing an edit form.


That should be automatic in latest TMS XData 4.7: 

https://download.tmssoftware.com/business/xdata/doc/web/whats_new.html
Wagner R. Landgraf2019-10-04 12:31:33

It's working, a big thank you!