The modify events can be raised from several source, for example :
ItemId modified event is being raised in PurchTable form is raised from Data sources / PurchLines / Fiedsl / ItemId / Methods / modified.
After the field is changed, it will get the default values.