I am uploading a CSV file that contains data for some of the columns in a table.
The table was created using ChronoForms v5 and when used by a associated form its DB Save action automatically creates the unique id, create date, created by, etc.
I would like to use a form like this and be able to call the same DB Save action from within Custom Code. The Custom Code contains a loop processing the CSV file rows.
I found a post showing some code for processing CSV files, but it was for CFv4 and appeared to require the code to generate the CF table fields like the unique id, create date, created by, etc., and then insert directly into the table (I can no longer find that post; should have stared it!). I would like to avoid doing this and rather reuse existing functionality in CFv5.
How can I call a DB Save action or another form's submit from within a form's Custom Code loop?
The table was created using ChronoForms v5 and when used by a associated form its DB Save action automatically creates the unique id, create date, created by, etc.
I would like to use a form like this and be able to call the same DB Save action from within Custom Code. The Custom Code contains a loop processing the CSV file rows.
I found a post showing some code for processing CSV files, but it was for CFv4 and appeared to require the code to generate the CF table fields like the unique id, create date, created by, etc., and then insert directly into the table (I can no longer find that post; should have stared it!). I would like to avoid doing this and rather reuse existing functionality in CFv5.
How can I call a DB Save action or another form's submit from within a form's Custom Code loop?