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');
dialog.run();

if (dialog.run())
{
filename = (dialogfield.value());
}

info(filename);

}

1 comment:

  1. Curious about whether your Apple Watch can sync up with your Android phone? This article has all the answers!
    Don't miss out on this informative read – click now to explore compatibility options and unlock a world of possibilities!

    ReplyDelete

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...