Thursday, February 3, 2011

Question about chained tables with grandson, father and grandfather relations.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everybody!

I have a question about how to do to show a data field of a grandfater
table in the grandson's views (add, delete, edit and list)

An example:

myforms father grandfather
- ------------------- ---------------------- ------------------
id id id
field1 field2 name
... ... ...
father_id grandfather_id


- ----

I just want to select in the "myforms" views (add, edit) using a
selection list with the values of the "name" field (obviously, using
some conditions for the father or the grandfather tables ) of the
grandfather table BUT I need to store in the myforms table the father.id
value

I just search in the cakephp site and in some blogs, but i can't find
any solution.

This case was in an invoice table, with salesman id and with de people
data in a third table ...


Regards,

Alejandro G.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNS3U7AAoJEHQn9CmeN9DJi8EH/jlBWe1kK2TPTFGiTrge9IuN
2PP1xWBYv9wW+NRpbNdHIa7Fuv29mQmD+fIvDh4DI1oovLLOh2tWrjQ9niUiFV3n
Uz4w22TAUUqALlMm6mC0NRvHADecvhaEq7tKWHeBY+PDHSXIqs6GvBxWqqbERNc+
CnigcTaX/6oKg5E3oKgtE6Ce8niGm8R8KsZHV2GF1zElm39dUZhPvVvNODHLHWD5
3EmgNFeCiiRvT7EwQKmI+drNaEqvvAg0HMkR6UkhSrGzS/cI7x5Ij9aU5/0ITywZ
yADBWsEWhD3dTIHhKAfMYgK9gIA+I1UEN8n83+ECL8IwbYsOl+yD87gEyoifh7o=
=1HG1
-----END PGP SIGNATURE-----

--
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


Real Estate