I made a form for updating a users profile. The data are read from two tables: the Joomla User table and a custom chronoforms-table with additional infos of the user. The data is hold under two differnt ModelIDs: User and UserExt.
After submitting the changed data i have two DBSave-Actions, one for the joomla table, one for the custom table.
My Problem: in both tables the data is not updated. After the Save-Action there is one new row in both tables.
What is my error?
Sorry for my bad english :-(
Greetings
Gerhard
After submitting the changed data i have two DBSave-Actions, one for the joomla table, one for the custom table.
My Problem: in both tables the data is not updated. After the Save-Action there is one new row in both tables.
What is my error?
Sorry for my bad english :-(
Greetings
Gerhard
Hello cachito,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How do I save form data to a database table?
My form data isn't saving to the database correctly
How to load record data from a database table into your form
P.S: I'm just an automated service😉
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How do I save form data to a database table?
My form data isn't saving to the database correctly
How to load record data from a database table into your form
P.S: I'm just an automated service😉
Thank you calculus00,
but i read these faqs before and haen't find a solution.
Greetings
Gerhard
but i read these faqs before and haen't find a solution.
Greetings
Gerhard
Hi Gerhard,
Both models ids should have under them a field with the primary key value of each record, so in case of User, you must have a field named User[id]
Regards,
Max
Both models ids should have under them a field with the primary key value of each record, so in case of User, you must have a field named User[id]
Regards,
Max
Hi Gerhard,
To update a table you need to make sure that the $form->data array has an entry matching the Primary Key column of the record you want to update.
For a Joomla! table this will normally be $form->data['id']; for a ChronoForms created table it may be $form->data['cf_id']
Bob
To update a table you need to make sure that the $form->data array has an entry matching the Primary Key column of the record you want to update.
For a Joomla! table this will normally be $form->data['id']; for a ChronoForms created table it may be $form->data['cf_id']
Bob
This topic is locked and no more replies can be posted.