Hi to all,
I have a list that is filtered through some custom fields and a date picker. The list and filtering are showing fine, now I want to add a button to export in csv the list after is filtered.
The list is provided by a read data function {function:read_disponibilita_ig}
what I tried is to:
this is working but obviously this will export the entire db read function, not the filtered one by the custom fields.
How can I pass the filtered var from one event to another? Or maybe is there a way to run the csv_export function on click in the index event, without start automatically the download when the event is loaded? it's a little difficoult to explain...
I have a list that is filtered through some custom fields and a date picker. The list and filtering are showing fine, now I want to add a button to export in csv the list after is filtered.
The list is provided by a read data function {function:read_disponibilita_ig}
what I tried is to:
- create a csv export function "csv_export" with data provider {var:read_disponibilita_ig.[n].read_disponibilita_ig}
- create a new event "export"
- add to the export event this content {function:read_disponibilita_ig} {function:csv_export}
- create a link button that is linking to the export event
this is working but obviously this will export the entire db read function, not the filtered one by the custom fields.
How can I pass the filtered var from one event to another? Or maybe is there a way to run the csv_export function on click in the index event, without start automatically the download when the event is loaded? it's a little difficoult to explain...