Generate a File in an Ajax Callback and then Download It
Uploaded on Dec 20, 2019 / 12 views / 127 impressions / 0 comments
Description
In UX and Grid components you might want to make an Ajax callback to the server and then generate a file on the server which the user can then download. The file that you generate on the server might be an Excel file, a PDF document, a Word document, etc.
In this video we show how you can create the Xbasic function that handles the Ajax callback, creates the file and then generates the necessary Javascript to send back to the browser in order to download the file.
Download component: http://alphamediacapture.s3.amazonaws.com/videos/downloadFile.zip