Forums

Make csv file store in a folder

olizan74 22 Apr, 2020
Hello,
i'm newbie and english isn't my native langage.
Is there a step by step tutorial to create a file stores in a folder ? for ex, csv file.
i have read the doc but it's not very clear for me.
regards
Olivier
Max_admin 23 Apr, 2020
The CSV action has store/download options, did you try that ?
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
olizan74 23 Apr, 2020
yes but where can i find the csv file ?
The objective : the admin can download the file not the end user.
The manual don't show the csv options item.

first i have placed the csv at the end of action list items.
action : store
data provider : ?
file name : myfile.csv
storage path : ? for example, mysite/images/order/myfile.csv

what means "path:front" ?
olizan74 23 Apr, 2020
do i add some functions ?
olizan74 23 Apr, 2020
ok, i can download the csv file but it's empty.
i have some tag in the first case :


<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:" ";}
@page
{margin:.75in .7in .75in .7in;
mso-header-margin:.3in;
mso-footer-margin:.3in;}
tr
{mso-height-source:auto;}
col
{mso-width-source:auto;}
br
{mso-data-placement:same-cell;}
td
{padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:black;
font-size:11.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:Calibri, sans-serif;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
border:none;
mso-background-source:auto;
mso-pattern:auto;
mso-protection:locked visible;
white-space:nowrap;
mso-rotate:0;}
-->

olizan74 23 Apr, 2020
ok... i have modified the items :

1. message : thanks etc.
2. email -> i receive datas
3. read data read_data6 : model name : commande, database table : the name of the table, all matching records
4. csv : data provider : {var:read_data6.[n].commande}, action store, file name myfile.csv, storage path : image/csv

i have the file with datas but only 1 line
olizan74 23 Apr, 2020
must I place the "save data" item ?
olizan74 23 Apr, 2020
ok, it seems to work. i have 2 lines in the csv file... BUT !

The headers are the name of the item without spaces. Not very beautiful. Can i change the header title ?
teldrive 13 Jun, 2020
I tried also to store but it doesn't work, tried with demo also
download option works but not store option, I didn't find the reason if someone can help
teldrive 13 Jun, 2020
I found my problem in storage path is necessary set full path {path:root}/doc/mifile.csv
This topic is locked and no more replies can be posted.