Form Sequence Calling Methods in D365F&O (X++ code)
When we open the form.
form > init();
form datasource > init();
form > run();
form > dataSource > executequery();
form > datasource > active();
When we close the form.
form > canclose();
form > close();
When we create a new record.
form > datasource > create();
form > dataSource > initvalue();
table > initvalue();
form > datasource > active();
When we save the record.
form > datasource > validatewrite();
table > validatewrite();
form > datasource > write();
table > insert();
When you delete the record.
form > datasource > validatedelete();
table > validatedelete();
table > delete();
form > datasource > active();
When change the value in the field or control.
table > validatefield();
table > modifiedfield();