Hello,
I've to export some data to CSV file.
I've build a form, with a MultiRecord Loader action (on the OnLoad event) and then, in the on Submit event, i've added the CSV Export v2 [GH] action. I've set the Data Path = Model ID of the MultiRecord. When clicking the Submit button I've no file download. I suppose it does not work!😟
Then i've added a new MultiRecord Loader in the on Submit event, with the same parameters of the first one, and now, when clicking the submit button, i can download the csv file.
Is it the right way for exporting the data when submitting the form?
Ok, another question. I've set the columns that must be exported with the "Column details" parameter, in the following format:
My Service=service
Full Cost=money
...
and so on.
I've noticed that, if the CSV Export v2 [GH] action gets its data from the Multirecord action (that is with Data Path = Model ID of the MultiRecord) then the file csv exports always all columns. If I set the CSV Export v2 [GH] action to get data from a table (that is Table=table name) it exports the right columns.
Is there any issue? What's wrong?
A last question....
The multirecord loader has the following "Where Statements":
<?php $user = &JFactory::getUser(); echo "cf_user_id = ".$user->id ?>
that is the query is filtered on the logged user.
Is there any way for set the CSV Export v2 [GH] action in the same way? I've tried but it does not work.
Thanks at all and sorry for my bad english
Guido Sabatini
I've to export some data to CSV file.
I've build a form, with a MultiRecord Loader action (on the OnLoad event) and then, in the on Submit event, i've added the CSV Export v2 [GH] action. I've set the Data Path = Model ID of the MultiRecord. When clicking the Submit button I've no file download. I suppose it does not work!😟
Then i've added a new MultiRecord Loader in the on Submit event, with the same parameters of the first one, and now, when clicking the submit button, i can download the csv file.
Is it the right way for exporting the data when submitting the form?
Ok, another question. I've set the columns that must be exported with the "Column details" parameter, in the following format:
My Service=service
Full Cost=money
...
and so on.
I've noticed that, if the CSV Export v2 [GH] action gets its data from the Multirecord action (that is with Data Path = Model ID of the MultiRecord) then the file csv exports always all columns. If I set the CSV Export v2 [GH] action to get data from a table (that is Table=table name) it exports the right columns.
Is there any issue? What's wrong?
A last question....
The multirecord loader has the following "Where Statements":
<?php $user = &JFactory::getUser(); echo "cf_user_id = ".$user->id ?>
that is the query is filtered on the logged user.
Is there any way for set the CSV Export v2 [GH] action in the same way? I've tried but it does not work.
Thanks at all and sorry for my bad english
Guido Sabatini