#Table - how to download entire table as xls
1 messages · Page 1 of 1 (latest)
Hi There!
Thanks for reaching out to us. One of our engineer will be with you shortly.
If you are stuck with an issue/error, please help us with following information.
- Which version of Appsmith are you on?
- Provide screenshots/screen recordings of the original error/code snippet.
- Add details about your use case and provide steps to reproduce the issue, if
possible.
@languid smelt I think this sample app should help - https://app.appsmith.com/applications/61e11a42eb0501052b9fab3e/pages/625e547d0d3d384069c242a4
although it is csv and not xls file
@pulsar dagger yes it does. Thanks. But... it garbles non ascii characters... I can't seem to find a way to respect the encoding...
Also I suspeect this approach will quickly crash the browser when it's a big table...
I think I have to give up on using appsmith to download the entire table... may have to use a backend api...
so, to wrap up... it seems appsmith correctly downloads the file with the same encoding as the origin database. So there is really no problem. It is just a shame that we cannot download as xls. Downloading as csv will force the user to use the import text/csv in excel, that many folks don't know about. So maybe it would be good to have a function in appsmith that does the same as the download button in the table widget?
Please consider creating a feature request here:
https://github.com/appsmithorg/appsmith/issues/new/choose
@languid smelt csv can be opened as a regular file in Excel right? I mean with individual columns and all. I know sometimes csv files can all end up in a single column separated by semicolons. But when I downloaded the csv file from the sample it opens up as it would normally. So I'm thinking why would users have to import the file as text/csv in excel
There are 2 issues with csv at this time that I can see: 1) opening in excel does not recognize the encoding - you have to use the import procedure in the Data menu->Get data from file; 2) tables that are paginated server-side are usually big, so the browser has to process all that data into the correct format before downloading - this can take too much cpu and ram, and you still need to instruct the user on how to open the resulting file.
Since appsmith already has the capability of producing and excel file from a query/api (that we see in the table download button) it would be a matter of making this available to us to use in other places (eg button).
We are looking at being able to provide infinite scrolling on the table widget but I'm not yet sure if the Download button will also then give us the entire table data. https://github.com/appsmithorg/appsmith/issues/13180
Have posted a comment here to confirm
Can you tell us more about why you need so much data at once?