Requirement :
I am importing forecast records (using CSV) in AX and then generating forecast lines during import.
I want this process to run in batch job.
Current Solution :
There is a dialog (Form) that opens up with parameters and then below code is triggered on click of OK button to upload file.
The import is working fine but for large chunk of data its taking too much time and is blocking the UI till the import completes.
1. Is it possible to run the upload progress in batch job?
Part of my customisation :
fileUpload = File::GetFileFromUser() as FileUploadTemporaryStorageResult;
if(fileUpload && fileUpload.getUploadStatus())
{
file = AsciiStreamIo::constructForRead(fileUpload.openResult());
}
After this, I am reading content of the file and processing forecast.
Another Solution : Browse control
I wanted to use a simple browse control 'FileNameOpen' but i think it's obsolete as there is no FileUploadStategy created for it.
2. Can anyone tell me if there is still a 'Browse' control that we can use to read the file from the path browsed?