Download file from query node
Last updated
Last updated
Sometime, you want to empower your users to filter the table and download the filtered table. Acho App Builder provide an API Service to achieve this task.
Acho support download file from query nodes by action API Service → Download File. You can add a button on your app to trigger the action and allow users to download data as a file. Follow these steps to set it up:
In the Interactions panel, add a supported event(Click Button in this example).
Then, add an action, select API Service → Download File.
Select which data asset to download data from in the dropdown menu.("Sample_data" is used in this example).
Select the file format of the download, there are two options:
CSV: Comma-Separated Values is a popular file format for storing tabular data. It uses plain text with values separated by commas.
JSON: JavaScript Object Notation is a lightweight data interchange format. It provides a structured representation of data using key-value pairs, arrays, and nested objects.
Is Public File determine whether or not the action will generate a public link for the file, remember to turn it on if you want to use the link to share with teammates.
In this example, when the button is clicked, it will downloads data from the node Sample_Data as a CSV file.