// I.20160303 L_RSetup.GET(); L_RSetup.TESTFIELD("FTP Code"); L_RFTPSetup.RESET(); L_RFTPSetup.SETRANGE("Function code", L_RSetupViridex."FTP Code"); IF L_RFTPSetup.FINDFIRST() THEN BEGIN // L_RFTPSetup.Elaborate: performe remote file download L_RFTPSetup.Elaborate(''); // i'm setting XML path and file name L_XImport.FILENAME := L_RFTPSetup."Local path" + 'import.csv'; L_XImport.RUN(); // this instruction was a test... //XMLPORT.RUN(XMLPORT::"Remote Credit Limit Import",FALSE,TRUE,Rec); CurrPage.UPDATE(); END; // F.20160303
// I.20160303 L_RSetup.GET(); L_RSetup.TESTFIELD("FTP Code"); L_RFTPSetup.RESET(); L_RFTPSetup.SETRANGE("Function code", L_RSetupViridex."FTP Code"); IF L_RFTPSetup.FINDFIRST() THEN BEGIN // L_RFTPSetup.Elaborate: performe remote file download L_RFTPSetup.Elaborate(''); L_GImportFile.OPEN(L_RFTPSetup."Local path" + 'import.csv'); L_GImportFile.CREATEINSTREAM(L_GStream); XMLPORT.IMPORT(XMLPORT::"Remote Credit Limit Import",L_GStream); L_GImportFile.CLOSE(); CurrPage.UPDATE(); END; // F.20160303
Answers