How to export data
Last updated
Was this helpful?
Last updated
Was this helpful?
This tutorial is designed to help you create an "Export to" interaction for your Avonni Data Table. This interaction enables users to export entire data sets or selected data rows in Excel or CSV file formats.
Let's place an action button directly in the Data Table's header to handle data exports. We'll create an "Export" button that allows users to download the table content as an Excel or CSV file. This action is configured to be context-aware: it exports only the specific rows the user has selected. However, if no rows are selected, it exports all the data currently displayed in the table.
To set up the data export triggered by the action element you created, follow these steps in the Interaction Panel:
Go to the Interaction Panel: Look for the interaction options.
Choose Target: Select the action you created in from the dropdown list.
Set Type to 'Export To': This enables the data export feature.
Default File Name: Enter a pre-filled name for the exported file, which users can change later. Select "Mapped" from the icon menu for dynamic file naming and choose one of your flow resources. This allows the file name to be generated dynamically based on your selected resource.
Optional - Simplify Export: To speed things up, you can hide the export dialog, limiting user choices on file format and encoding.
File Format: Pick the formats, like Excel or CSV, that are available for export.
Default Encoding: Choose a standard encoding to ensure the file works well with most software.
Following this straightforward guide, you've added an "Export to" feature to your Avonni Data Table. This enhances usability by enabling users to easily export data for analysis, sharing, or archiving beyond the confines of your application.