Error during file download
Posted: Thu May 14, 2020 2:39 pm
Hello
We have set up the PUI Download in this way
And the PUIDNLEXIT program is in PROFOUNDUI library.
The code added to that program is as below
The folder has the correct file generated
But When we try to download the excel, it gives us a error
"Error occurred calling PUIDNLEXIT program before download"
It blasts us out of the job completely, so we cannot even go and check the job log on hat is happening
Can you please help us in this ?
We have set up the PUI Download in this way
Code: Select all
var checkInd = getObj("downloadexcel");
if (checkInd.value == 'true') {
pui.download({ "id": "FRAT060RG", "inline": "0" });
pui.set("downloadexcel", false);
}
The code added to that program is as below
Code: Select all
// Allow FRAT060RG program
When %subst(inputData.fileId:1:9) = 'FRAT060RG';
TmpDir = '/program work space/FRAT060RG';
stmfDir = %trim(TmpDir);
stmfName = 'Package_Setup_' +
%trim(inputData.userid) +
'_' + CharToday + '.xlsx';
attName = stmfName;
allow = 1;
But When we try to download the excel, it gives us a error
"Error occurred calling PUIDNLEXIT program before download"
It blasts us out of the job completely, so we cannot even go and check the job log on hat is happening
Can you please help us in this ?