saving multiple records in the table

economyweb 02 Nov, 2021
Hello bob and max,

I have a problem with save multiple records in database

The array is prepared (img01)
The save data is prepared (img02)
The result no save records (img03)


saving multiple records in the table image 1
saving multiple records in the table image 2

saving multiple records in the table image 3
Look images please..
Can u help me??
economyweb 02 Nov, 2021
I've found the solution.
1. place a loop event where you want to record the rows -> name action like "miloop"
2. in loop data provider put the name of the model with the data you want to save. {data:model}
3. set save data action into the loop in body section and put the "miloop" in model name.
4. set "data sources" in advances settings (in save data)
6. for each field in every row of data source (column "value") put {var:miloop.value.field}

Voilà!!!
You need to login to be able to post a reply.

VPS & Email Hosting 20% discount
hostinger