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(); … Continua a leggere D365FFO – AX – X++ – Simple dialog with field validation and control override method →