Dynamics AX Solutions: Filtering Excel and CSV files in a dialog

Here is a small peace of Axapta x++ code, that allow you to filter XLSX and CSV files in a dialog box…
This is useful if you want to show only this type of files in a selection.
public Object dialog()
    DialogRunbase       dialog = super();
    dialogFilename = dialog.addField(typeId(FilenameOpen));
    dialog.filenameLookupTitle("Upload from EXCEL/CSV");
    return dialog;

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.