appendChild(error)įirst, try importing the desired template and debug the code to get the headers in the header variable as an array. appendChild(table)Ĭonst errorMsg = 'Unexpected file type' const error = document. createElement( 'td')Ĭonst txt = document. ![]() ![]() readAsBinaryString(file)Ĭonst table = document. * Get first worksheet */ const wsname = wb. To handle such scenarios, one way is to validate the imported file by comparing the headers of the imported file with the desired template. This scenario might be very unlikely and the user should be given a pop up saying the imported file is wrong! It might happen, user might try uploading a wrong excel file by mistake. ![]() In this blog, we will check how we can validate a file, which we used to import in UI5 application just as we discussed in the previous blog.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |