Hello!
I'm using CCv5 + CFv5, and all workds OK.
From CCv5 loads a CFv5 form and, when save, the variables updates correctly.
Having this, how can I save the same variables into another table?
I've try to put a DB SAVE action into LOAD event of form (to save the "original" info), but saves all variables as empty.
What I'm doing wrong?
thanks
I'm using CCv5 + CFv5, and all workds OK.
From CCv5 loads a CFv5 form and, when save, the variables updates correctly.
Having this, how can I save the same variables into another table?
I've try to put a DB SAVE action into LOAD event of form (to save the "original" info), but saves all variables as empty.
What I'm doing wrong?
thanks
Hi KronoSites,
When you call a form from CC all that is passed over is a record identifier, not the record itself. Then CF loads the record data - I'm not sure at what point it does that though. You can probably use a Debugger action in the On Load event of the form to check at what point the data is available to be re-saved.
Bob
When you call a form from CC all that is passed over is a record identifier, not the record itself. Then CF loads the record data - I'm not sure at what point it does that though. You can probably use a Debugger action in the On Load event of the form to check at what point the data is available to be re-saved.
Bob
Hello GreyHeah,
Here you have all the information:
CCv5 list:
DEBUGGER of CFv5 when edit a row in the through the CCv5:
DB_SAVE:
Having equal to this image, no error is showed but the row created have all the fields empty.
mySQL Database:
Here you have all the information:
CCv5 list:

DEBUGGER of CFv5 when edit a row in the through the CCv5:


DB_SAVE:
Having equal to this image, no error is showed but the row created have all the fields empty.


mySQL Database:

Hello, its there a solution for this?
I have the same problem.
Thanks.
I have the same problem.
Thanks.
A long time ago this query but, if I remember correctly, to use more than one "DB DATA" action and save it in different tables, you had to put a "CUSTOM ACTION" after each save action, with the following code
I hope I've helped
<?phpIn addition, each "MODEL ID" of each "DB SAVE" action must have a different code.
unset($form->data['id']);
?>
I hope I've helped
Excelent it works, i have another question:
I want to retrive info from a table and then save into another,Table "a" (in this example with CC I retrive 'id' and 'nombre') then I show this data in CF ,everythin good, then i submit data , but when I check the table "b" it saves everything except the data retrived with CC.
How can I save this data?
I think GreyHead meant this problem in the post: "When you call a form from CC all that is passed over is a record identifier, not the record itself. Then CF loads the record data - I'm not sure at what point it does that though."
But he didnt put the solution.
Thanks for the help.

Table "a"

retrived data with CC

"id" and "nombre" data in CF

table "b"
I want to retrive info from a table and then save into another,Table "a" (in this example with CC I retrive 'id' and 'nombre') then I show this data in CF ,everythin good, then i submit data , but when I check the table "b" it saves everything except the data retrived with CC.
How can I save this data?
I think GreyHead meant this problem in the post: "When you call a form from CC all that is passed over is a record identifier, not the record itself. Then CF loads the record data - I'm not sure at what point it does that though."
But he didnt put the solution.
Thanks for the help.

Table "a"

retrived data with CC

"id" and "nombre" data in CF

table "b"
This topic is locked and no more replies can be posted.