(Alpha 12.4.5.4.8 build 5581)
In the “Web Project Properties” under “PDF Printing Options” I have set “Print timeout” (to 5 seconds just for testing) and I have set a “Print timeout message”. When I submit multiple reports (to generate and download as PDF), I want to be able to know which request failed.
Let me explain: The user “submits” a report by clicking a button on a row in a LIST control on a UX. The button runs ActionJavascript (that I have converted to text mode), to set a meaningful download file name for the PDF, this is specific to the clicked row. I know what row the user clicked in the LIST, so I save and display that suggested file name in the list. I then hide that row’s “Create PDF” button and I show a “Wait…” animated icon, instead. When the server has finished creating and downloading the PDF, it sends a JavaScript response that gets handled (“evaluated”) by Alpha’s _handleReportResponse JavaScript function. A normal response, for a completed report, includes Javascript that populates an “e” object which includes useful information, such as the download file name that I calculated earlier. This allows me to locate the entry in the LIST and change the animated “Wait…” icon into a checkmark.
My problem is when a report fails to run in the allotted time, the Alpha IIS server (at least in the build I am using) does not return JavaScript to create the “e” object. It only returns JavaScript to call A5.msgBox() to show the message I added to the Web Project Properties for PDF timeout and one line of code to initialize “a5reportInfo” as an empty object.
How can I get the server to give me at least some information that would allow me to identify the specific report request that failed?
The reports I am running are defined in the “Reports (Project)” section of the “Web Projects Control Panel.
-Rich F.
In the “Web Project Properties” under “PDF Printing Options” I have set “Print timeout” (to 5 seconds just for testing) and I have set a “Print timeout message”. When I submit multiple reports (to generate and download as PDF), I want to be able to know which request failed.
Let me explain: The user “submits” a report by clicking a button on a row in a LIST control on a UX. The button runs ActionJavascript (that I have converted to text mode), to set a meaningful download file name for the PDF, this is specific to the clicked row. I know what row the user clicked in the LIST, so I save and display that suggested file name in the list. I then hide that row’s “Create PDF” button and I show a “Wait…” animated icon, instead. When the server has finished creating and downloading the PDF, it sends a JavaScript response that gets handled (“evaluated”) by Alpha’s _handleReportResponse JavaScript function. A normal response, for a completed report, includes Javascript that populates an “e” object which includes useful information, such as the download file name that I calculated earlier. This allows me to locate the entry in the LIST and change the animated “Wait…” icon into a checkmark.
My problem is when a report fails to run in the allotted time, the Alpha IIS server (at least in the build I am using) does not return JavaScript to create the “e” object. It only returns JavaScript to call A5.msgBox() to show the message I added to the Web Project Properties for PDF timeout and one line of code to initialize “a5reportInfo” as an empty object.
How can I get the server to give me at least some information that would allow me to identify the specific report request that failed?
The reports I am running are defined in the “Reports (Project)” section of the “Web Projects Control Panel.
-Rich F.