Enable Data Export
Overview
This tutorial shows you how to create an "Export to" interaction for your Avonni Data Table. This interaction enables users to export entire datasets or selected rows in Excel or CSV format.

Steps to Create an "Export to" Interaction
Create a Header action on the Data Table
Place an action button directly in the Data Table's header to handle data exports. We'll create an "Export" button that lets users download the table data 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.

Create the interaction from the interaction panel
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 Step 1 from the dropdown list.
Set Type to 'Export To' to enable data export.
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.

Wrap-Up
Following this straightforward guide, you've added an "Export to" feature to your Avonni Data Table. This enhances usability by enabling users to export data for analysis, sharing, or archiving outside your application.
Last updated
Was this helpful?
