Cannot save into double table

Save form data into two database tables.

Overview

The issue occurs when multiple database save actions in a CF form share the same model ID, causing only one table to be updated.
Assign a unique model ID to each database save or read action within the same form event.

Answered
Yu Yudhizth 29 Oct, 2014
Hi All, Sorry for asking (again)

I try to save data into two tables, first it works, and incident is coming, my friend inadvertent deleted one of db save event. So the back end show Error : 0 Couldn't connect to MySQL. Without thinking, I create new form, still the same form. And the problem is, when I click submit button, there is only save into one table, the other one is still empty. How to fix it Max? I really confused right now 😟
Yu Yudhizth 29 Oct, 2014
This is my relation, every PK has autoincrement
Yu Yudhizth 29 Oct, 2014
This is the result of debugger, Why the second dbsave is update query? I only put 2 dbsave event
Please help me 🙂
Max_admin Max_admin 29 Oct, 2014
Answer
We have already solved this, the solution is to use unique "Model id" for your "DB save/DB read" actions when you have more than 1 in the same event!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.