Add a record to an extra table which belongsto the actual table.
I have a form to input all the items of a coin.
There is - besides others - also an attribute "Nominal" to enter.
Nominals are kept in an extra table which is joined to coins with a
"belongsto".
The existing items can be selected in a drop-down - everything's fine!
But what, if there es a new nominal which has to be inserted into
nominals and into coins.
I would like to have a textfield to enter the nominal - and a function
which
inserts the new nominal into the table nominals and the reference to
it into
the table coins. Alternatively I would like to have a button to open
the add form for nominals to insert the new item and coming back to
the unchanged coin form where I left it - hopefully the reference of
the new nominal inserted.
Can anyone give me a leed to an example or a tutorial for a newbie?
I think I have to delve into Ajax - right?
Thanks a lot.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home