Posts

Showing posts from November, 2017

Exporting AX Data to .csv File Through Class (Dialog)

Image
CLASS DECLARATION: class CustomerDataExtension_RunBase extends RunBaseBatch {     CustTable   custTable;     FilePath    TempPath;     Dialog      dialog;     DialogField dialogFieldFileSave;     FilenameOpen filename;     CommaTextIo file;     container line;       #File     #DEFINE.CurrentVersion(1)     #LOCALMACRO.CurrentList         TempPath     #ENDMACRO } DIALOG: protected Object Dialog() {     dialog = super();     dialogFieldFileSave     = dialog.addField(extendedTypeStr(FilenameSave),"File path","Help text goes here");     dialog.caption("Customer Data Extension");     dialog.filenameLookupFilter(['csv','*.csv']);     retu...