Hi All,
I'm following the tutorial "CFV4 DB Multi-Record Loader" to list the saved records. However, when I click the "Edit", the saved value is not loaded. Can anyone give me idea?
I'm using Joomla 1.6.5 and CF V4 RC2.0.
Thanks.
JP
Hi JP,
Does the table you are using have an autoincremented primary key?
Bob
Hi Bob,
Yeah, it does have the autoincremented primary key. Attached please find the database settings.
Thanks.
JP
Hi Bob,
To assist your further investigation, here I attach 3 figures.
1) list.jpg: the page that lists the records
2) edit.jpg: the page that is prompted after "edit" link is clicked
3) table.jpg: structure of the table
Thanks.
JP
Hi All,
I'm following the tutorial "How to load one row from a DB table into your form". The same problem faced: When the "edit" link is clicked, the saved value is not loaded.
Did anyone meet the same problem?
Thanks.
Rgds,
JP
Hi jp,
I can't tell much from this - I don't' see any problems but most of the code is not visible.
By all means email or PM me the site URL and a SuperAdmin login and I'll take a quick look.
Bob
Hi jp,
Fixed I think. I added a DB Load Record action to load the data back into the Edit form.
Bob
Yeah, it's fixed. Thanks Bob!
But I'm still facing the following problems:
1) The system cannot update the record, it just create a new record.
2) The system cannot redirect to the desired page.
Bob, I've sent an email to you. Can help to have a look?
I think I must have missed something, even though I followed the tutorials step by step.
Rgds,
JP
Hi JP,
You need to add a hidden input to take the value of the record Primary Key to identify the record to be updated.
You need to add a ReDirect User action to redirect the user.
Bob
Hi Bob,
Yeah. I've added the mentioned actions, but still cannot work. Can help to have a check?
I've email you the login info. Thanks.
Rgds,
JP
Hi JP,
I've lost track - is this fixed now?
Bob
Hi Bob,
Thanks! I've understood the whole logic of Chronofroms and fixed the problems.
Just a suggestion, you may add a few more lines in the tutorials to clear the confusion to beginners🙂
Cheers,
JP