Cheated using vmodel.demoSource.reader.model.idField. Renamed variables for demo. Fixed it so can close window following Undo.
Edit Product:
ID
Name
Unit Price
Save
Undo
You have changes pending that will be discarded on exit. Do you still wish to exit?
DISCARD AND EXIT
CANCEL