Hi All,
I have a list page with data in tabular format on that page. There are multiple filters on the list page for user to filter and view data. Now, I have want a download button on that page, on clicking on button the filtered data in that table should be downloaded in excel format.
How can this be achieved?
Hi Simran!
If you are using an aggregate or a data action, you can use the data action to output to download an excel file. If the list is filtered, the output of the aggregate or the data action will only have the filtered records, so you can download it.
To download it, I recommend you to create a server action where you can convert the list to an excel file and then in the client action on the screen related to the button, you can use the download widget to download the file. Don't forget that the file needs to have the ".xlxs" on the end of the name so it can be download as an excel file.
If you want to know more about this, check this solution about How to export record list on excel.
Tell me if I helped!
Cheers.