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)



Look images please..
Can u help me??
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)



Look images please..
Can u help me??
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à!!!
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.