AX – D365 – Add a popup simple dialog form into a a Runbase Form

Suppose you have a Runbase dialog but before do something you want to ask user if he's really sure he want to proceed with the elaboration. After clicking OK a popup dialog form opens and asks the user if he wants to proceed If ho click OK the elaboration starts, otherwise if he clicks on … Continua a leggere AX – D365 – Add a popup simple dialog form into a a Runbase Form

AX – D365FO – Prevent from closing Runbase after pressing OK or Close button

Suppose you have a Runbase dialog but before do something you want to ask user if he's really sure he want to proceed with the elaboration. After clicking OK a popup dialog form opens and asks the user if he wants to proceed If ho click OK the elaboration starts, otherwise if he clicks on … Continua a leggere AX – D365FO – Prevent from closing Runbase after pressing OK or Close button

AX – D365FO: Runnable Class with Parameters

This is a runnable class that extensds Runbase thet we want to obtain : class ABJ_RunnableClassUnpostPayrollPayStatement extends RunBase { PayrollPayStatement payrollPayStatement; PayrollPayStatementRecId payrollPayStatementRecId; DialogField fldPayrollPayStatement; public container pack() { return conNull(); } public boolean unpack(container packedClass) { return true; } public Object dialog() { Dialog dialog = super(); dialog.caption(‘Unpost Payroll Pay Statement’); fldPayrollPayStatement = dialog.addField(extendedTypeStr(PayrollPayStatementRecId), … Continua a leggere AX – D365FO: Runnable Class with Parameters

AX – How to add a file dialogField in a RunBase (or RunBaseBatch) dialog

We need to add a file type dialog field in a RunaBase or RunBaseBatch dialog How to do in x++ Class Declaration class ImportDemandForecastCSV extends RunBaseBatch { DialogRunbase dialog; DialogField dialogFileName; FileName fileName; #define.CurrentVersion(1) #define.Version1(1) #localmacro.CurrentList fileName #endmacro } public Object dialog() { dialog = super(); dialog.addGroup("@SYS7764"); dialogFileName = dialog.addField(ExtendedTypeStr(Filenameopen), "File Name"); return dialog; } … Continua a leggere AX – How to add a file dialogField in a RunBase (or RunBaseBatch) dialog

D365FO – AX – How to add a Dialog text in a RunBase dialog with X++?

THis code explains how to add a text in a Runbase dialog? public Object dialog() { dialog = super(); dialog.addGroup("Folder for export"); dialogFieldFilePath = dialog.addFieldValue(extendedTypeStr(FilePath), filePath); dialog.addGroup("Directory"); dialogUpdateStatus = dialog.addFieldValue(extendedTypeStr(NoYesId), updateStatus, "Update Status?"); dialog.addText("If "Not" job will create only log file"); //This is a Text dialog field return dialog; } This is the result :

D365FFO – AX – Runbase – Allow multiple selection in a Lookup dialogue field

Reference article : https://vermaax.wordpress.com/2014/07/30/multi-value-select-for-lookup-in-dynamics-ax-2009/ DialogField dlgField = dialog.addField(…);FormStringControl fsc = dlgField.control();fsc.replaceOnLookup(false); Let’s assume we have lookup for a control If you put ReplaceOnLookup property to Yes (default), the control will not let you select more than one value. If you put ReplaceOnLookup property to No (default), the control will let you select more than one value.