Forums

Download csv according to the chosen date

rafaelscouto 11 Nov, 2020
I have a table in the index event with several filters (dropdowns)

This table is inside a form.

This form has the submit event as index and contains the following data:
{view: filter_date}
{view: filter_category}
{view: btn_submit}
{view: table}

The filters are working normally.
* {Fn: read_data} contains a where for the filters and I put it as: (continue).

The structure of the Index is as follows:

Index Event
{fn: read_data}
{view: form}

I created an event called Download, in it I have:
{fn: read_data}
{fn: download_csv}

* {fn: download_csv} is defending in the correct way as I saw in other topics here.

Data provider: {var: read_data. [N] .Data}

What I need now is to download a CSV according to the chosen date and / or other filters. However when trying to download this csv that way it comes with all the data, without going through the filter you would like, how can I solve this problem?
You need to login to be able to post a reply.