Can someone pls share a clear and step by step info on how to export my current list view of records that I see on the screen to csv? and also pdf?
I just need to add a button at the end of page where if clicked it would export to csv. also I need pdf.
I just need to add a button at the end of page where if clicked it would export to csv. also I need pdf.
You have to read the data again then export.
anyone there???
Im using the readall function then view table then added export csv but the problem I only get the download csv and its empty.
shall I create another function to read or what exactly??
Im using the readall function then view table then added export csv but the problem I only get the download csv and its empty.
shall I create another function to read or what exactly??
What have you got in your csv export?
No, what have you got in the settings of your CSV export action?
Data provider is completely wrong, that's just a string. Try
{var:read_data_action_name.[n].model_name}For example if your DB read is called "myRead" and your model is "entry" then that would be {var:myRead.[n].entry}
yes now its working fine
just wondering how can I add it as a button to export the current view only??
just wondering how can I add it as a button to export the current view only??
Use a toolbar button. List view name will be the name of the form element the filter options are in, event will be the event the CSV export is in.
ok thanks for clarification.
I went on and did the following
the action csv has only the {fn:csv_export} which was working fine but when I press the button to export
the csv file is now again empty.
I went on and did the following
the action csv has only the {fn:csv_export} which was working fine but when I press the button to export
the csv file is now again empty.

You need to read the data again, which is why you're submitting the filter form.
do you mean create another function / action to read data?? or just insert the read db function/action before the export in the event of csv export?
Just use the same read data
dear sir
the csv is exportign fine but the main problem is that all fields are exported despite the fact that the current view is few columns only. how can I reflect the csv to have my current view only.
in my csv event i have two lines
fn:readdb
fn:exportcsv
what im thinking is that is there a way to make a function that returns the current view?
the csv is exportign fine but the main problem is that all fields are exported despite the fact that the current view is few columns only. how can I reflect the csv to have my current view only.
in my csv event i have two lines
fn:readdb
fn:exportcsv
what im thinking is that is there a way to make a function that returns the current view?
No there's not.
Just restrict the read data action to only the fields you need.
Just restrict the read data action to only the fields you need.
This topic is locked and no more replies can be posted.