Association references a transient object.on ApplyUpdates

I also tried to use this

TJSObject(wdsOdvozPodrobno.CurrentData)['Vehicle@xdata.ref'] := Format('Vehicle(%d)', [modMain.VehicleId]);

but this raises a different error

Odvoz.pas:208  Uncaught TypeError: Cannot set properties of undefined (setting 'Vehicle@xdata.ref')

So no improvement here.. :frowning: