Forums

Insert instead of Update

veronique 17 Jul, 2014
Hi,

Sumbitting an edited form, CCFv5 do an INSERT with NULL values instead of UPDATE the editing entry.
Max_admin 18 Jul, 2014
Does your form have a field with a name matching the primary key field name in your table ?

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
veronique 18 Jul, 2014
Hi Max,

Yes, it is

[attachment=0]ScreenShot.jpg[/attachment]
Max_admin 21 Jul, 2014
What do you have under the "Setup" section ? do you have the "Connection action" correctly configured ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
veronique 05 Aug, 2014
This is Setup section :

[attachment=0]ScreenShot.jpg[/attachment]
[attachment=1]ScreenShot2.jpg[/attachment]

What you need to see exactely ?

Thanks
Max_admin 07 Aug, 2014
You are using Chronoforms only, not Connectivity, correct ?

If yes then it all depends on your "db save" settings, please make sure that the "save under model id" setting is enabled, and set the model id according to your fields names.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
veronique 09 Aug, 2014
I use both Chronoforms and Chronoconnectivity.
Max_admin 13 Aug, 2014
1 Likes
Well, if this form is used to save the data using CC then you should NOT have a "db save", but should have a "Connection action", please read the CCv5 tutorials for this!

But if this is a standalone CFv5 form then your config is correct, if this the "db save" is enabled and the "save under mode id" is enabled and the model id is correctly set!

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
veronique 19 Aug, 2014
Well, sorry but I don't find the CCv5 tutorials.

Thanks
Max_admin 19 Aug, 2014
Answer
http://www.chronoengine.com/faqs.html
Then select CCv5

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.