I need to pass Volt MX element name to download it as an excel file for PWA Application

Is there any way to download the html form in excel format? HTML form contains Volt MX widgets like labels, text fields, text area, segment, listbox etc. By passing the Volt MX element name (frmName_flxSegmentList) the form should download in excel format. Is it possible through Volt MX Iris? Attached is the form expecting to be downloaded as an excel file. Kindly help.

Hi Teja,

It is absolutely possible for a Volt MX app to read and write data in Excel format. Your Volt Iris project will need to include SheetJS (sheetjs.com) library in the Iris -> Project -> Web -> Localfiles path. Then use the Volt Iris' browser widget to present a HTML page (located in the "Localfiles" Iris path) that will create an Excel file that is downloadable, for example excelout.html. Your Volt Iris desktop/webapp's form can push the data (from the elements contained in the form) to that "excelout.html" by getting the reference to the HTML page in the Iris browser widget and calling the HTML window.postMessage method.