AX / D365FO – Override The JumpRef method On A Base Form with Chain of command

I want to override the standard behaviour when I click on CustTable_tutStoreId control of my CustTable Form First create an extension class of your form and create a new method tutStoreIdJumpRef [ExtensionOf(formStr(CustTable))] final class tutCustTable_Form_Extension { public void tutStoreIdJumpRef(FormControl _formControl) { Args args = new Args(); MenuFunction menuFunction; RetailStoreTable retailStoreTable; retailStoreTable = RetailStoreTable::find(_formControl.valueStr()); args.record(retailStoreTable); menuFunction … Continue reading AX / D365FO – Override The JumpRef method On A Base Form with Chain of command

D365FO – AX – Change a dialog field value when another field value changes in a simple dialog form using registeroverride method

On a Simple dialog form when the dialog checkbox "Ignore minimum qty" is false then disable the dialog checkbox "dialogShowUsrDialog" else enable it and set the value to true. To do this we need to call the registerOverrideMethod when declaring dialogfields and write a new modified method. public void openQtyParmsDialog() {    dialog = new Dialog("Check Quantities");    dialogIgnoreMinQty = dialog.addField(extendedTypeStr(NoYesId), "Ignore … Continue reading D365FO – AX – Change a dialog field value when another field value changes in a simple dialog form using registeroverride method

D365FFO – AX – X++ – Simple dialog with field validation and control override method

Simple dialog with field validation and control override method: class VKSalesOrderCloseDialog extends RunBase{DialogField dlgHoldCode,dlgReasonCode,dlgNotes;MCRHoldCode holdCode;RetailInformationSubcodeId reasonCode;Notes notes; #DEFINE.CurrentVersion(1) #LOCALMACRO.CurrentList #ENDMACRO }Object dialog(){Dialog dialog = super(); dialog.caption("@MCR10327"); dlgHoldCode = dialog.addFieldValue(extendedTypeStr(MCRHoldCode), holdCode); dlgReasonCode = dialog.addFieldValue(extendedTypeStr(RetailInformationSubcodeId), reasonCode, "@MCR10280", "@MCR4410119"); dlgReasonCode.registerOverrideMethod(methodStr(FormStringControl, lookup), methodStr(VKSalesOrderCloseDialog, reasonCode_lookup), this); dlgNotes = dialog.addFieldValue(extendedTypeStr(Notes), notes); return dialog; }boolean getFromDialog(){holdCode = dlgHoldCode.value();reasonCode = dlgReasonCode.value();notes = dlgNotes.value(); … Continue reading D365FFO – AX – X++ – Simple dialog with field validation and control override method