I'm attempting to export form data (from a "flat" array) to a CSV, using the CSV Export v2 [GH] action.
I've followed the steps in the How can I link two DB Multi Record Loaders? article, and that was very helpful to show the data, but I get stuck in adding the extra step to export that form data.
I followed the advice in that article to convert the data array (adapting the example code provided), to a "flat" array, so the debug shows the form data as:
Using the example array above, what exactly would I enter in the Data Path field of the export action? I tried MyTest but nothing is exported. Am I missing a step, or am I not entering the Data Path correct?
Your guidance would be appreciated.
(I did have a look at all the forum posts I could find, that may relate to this, but could not find where I'm going wrong)
I've followed the steps in the How can I link two DB Multi Record Loaders? article, and that was very helpful to show the data, but I get stuck in adding the extra step to export that form data.
I followed the advice in that article to convert the data array (adapting the example code provided), to a "flat" array, so the debug shows the form data as:
Array
(
[option] => com_chronoforms
[chronoform] => export-download-data
[MyTest] => Array
(
[0] => Array
(
[title] => Document A
[created_on] => 2016-09-19 12:29:28
[id] => 289
[name] => John Smith
)
[1] => Array
(
[title] => Document B
[created_on] => 2016-09-19 09:20:17
[id] => 289
[name] => Bob Jones
)
[2] => Array
(
[title] => Document C
[created_on] => 2016-09-19 09:18:05
[id] => 289
[name] => Jane Green
)
)
)
Using the example array above, what exactly would I enter in the Data Path field of the export action? I tried MyTest but nothing is exported. Am I missing a step, or am I not entering the Data Path correct?
Your guidance would be appreciated.
(I did have a look at all the forum posts I could find, that may relate to this, but could not find where I'm going wrong)