AX – D365FO – How to call a method of a calling Form objects

Suppose you ha ve Form A that calls Form B. In Form B you want to call a method of Form A. How to do this? Follow these instructions. First in Form B declare 2 variables [Form] public class Al0VendorActivityVendorSearch extends FormRun { FormRun callerObject; Object object; ...... Then in the init method set callerobject … Continue reading AX – D365FO – How to call a method of a calling Form objects

AX – D365FO – Enable all Form controls by default

Some forms and their controls are disabled by default (see image below) If you want to enable controls you have to press "Edit" button or double click on a control. To avoid editing all controls by default just set the form property "ViewEditMode" to Edit This will be the result. All control are immediatly editable … Continue reading AX – D365FO – Enable all Form controls by default

AX – D365FO – Hide New and Delete buttons in a Form

Want to hide New and Delete buttons of a form? There are 2 ways The first is to override the init method of the form like this public void init() { this.form().design().showNewButton(0); this.form().design().showDeleteButton(0); super(); } the other way is to set the "Show Delete button" and "Show New button" properties to NO, like shown in … Continue reading AX – D365FO – Hide New and Delete buttons in a Form