57
Views
1
Comments
Query on advanced excel in outsystems

Hi everyone,


Working on a feature with advanced excel. where on the button export, the data corresponding to the tab gets exported in the form of a excel sheet using advanced excel server actions. Could anyone help

2022-02-25 19-42-59
Srinivas K Singadi

Hello saif sheikh 

Exporting data to Excel is a common task in OutSystems, and there are several ways to achieve it. One way is to use the Advanced Excel component, which provides server actions for creating and manipulating Excel files.

To use the Advanced Excel component to export data to Excel, you can follow these steps:

Create a button on the screen and set its OnClick action to a server action that will generate the Excel file.

In the server action, use the "Create Excel" action from the Advanced Excel component to create a new Excel file.

Add a sheet to the Excel file using the "Add Sheet" action.

Retrieve the data that you want to export from your database or from other sources, and write it to the Excel sheet using the "Write Data" action.

Set the appropriate formatting for the data using the "Format Cell" action.

Finally, use the "Download Excel" action to download the Excel file to the user's computer

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.