Forums

CSV Export + Button

jhdesign 07 Sep, 2017
I cannot get this to work, searched forums etc

1) I added a CSV export function, data provider is "{var:read_articles}" it always shows an empty CSV

2) How do I add a button to launch the CSV function? Whenever I add button with {fn:csvexport} as link, it triggers download on view.

Any help is appreciated
Max_admin 15 Sep, 2017
Hi jhdesign,

Apologies for the late reply.

The button will need to be a "link", and the url will have to point to an "event", and in the event you are going to call {fn:csvexport}

The "data provider" of the csv action will need to get the correct list of records, assuming your read data is configured to select "all matching records", the syntax will be something like this:
{var:read_data_name.[n].Model_name}


Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.