Prompt to import file in AX 2012

Dialog _dialog;
DialogField _file;
_dialog = new Dialog(“Please select the file to load”);
_dialog.addText(“Select file:”);
_file = _dialog.addField(ExtendedTypeStr(“FilenameOpen”));

_dialog.run();

if (_dialog.closedOK())
{

info(_file.value() );
}

Leave Comment

Your email address will not be published. Required fields are marked *