How to browse a file in ax 2012.

static void Select_FileOpen(Args _args)
{
/*
This is the demonstration to select the file as a browser window
you can create fileOpen browser window
*/
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);

Comments

Popular posts from this blog

Create record in inventdim table through code X++ in ax 2012

Code to import Employee Master data in ax 2012 R3 x++

Post product receipt for registered quantity x++, Ax 2012