Thursday, April 23, 2015

How to select a file using Browse Button in dialog box in AX 2012

Below code will help you to select the file in the dialog box using Browse Button.

static void Esh_FileOpen(Args _args)

Dialog dialog;
DialogField dialogField;
Filename filename;

dialog = new Dialog('FileOpen');
dialogfield = dialog.addField(extendedTypeStr(Filenameopen), 'File Name');;

if (
filename = (dialogfield.value());



No comments:

Post a Comment

How to enable the dimension fields based on the Item selected on the form.

[Form] public class KMTShipFromWarehouses extends FormRun {     InventDimCtrl_Frm_EditDimensions        inventDimFormSetup;     /// &l...