multisave form

teldrive 27 Aug, 2019
Answer
hi I apreciate if someone can help, I know to do multisave action for some array model data, but i couldn't find how to do in CFv6
I define data array to be ready for save
    [datos2] => Array
        (
            [0] => Array
                (
                    [alarm] => Array
                        (
                            [notificada] => 1
                            [aid] => 195
                        )

                )

            [1] => Array
                (
                    [alarm] => Array
                        (
                            [notificada] => 1
                            [aid] => 194
and after in save data action Data_provider {data:datos2} and in model alarm, but it doesn't work,
healyhatman 27 Aug, 2019
You need a Loop Event, data source {data:datos2}. Put a save data action in the loop and use {var:LOOP_EVENT_NAME.row.FIELD} for your save values, or {var:LOOPEVENT_NAME.row} for the data source of the save data action.
teldrive 27 Aug, 2019
Thanks a lot Kamron it worked for me with {var:loop_event11.row.alarm}, by the way very beautiful place area where you live ;-)
This topic is locked and no more replies can be posted.