Download file from query node
Last updated
Was this helpful?
Last updated
Was this helpful?
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:
Select an element, such as a or a , to add an interaction that will trigger the download.
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.
In this example, when the button is clicked, it will downloads data from the node Sample_Data as a CSV file.