Wednesday, January 6, 2010

Re: How can I get an option/select drop down to populate with a table.myfield instead of the table.id (primary key).

Looks like you got it but you can also set var $displayField = "state"; in your model and that will use the state field rather then the primary key when displaying it

On Wed, Jan 6, 2010 at 8:37 AM, Guran <guran.bangalla@gmail.com> wrote:
Thanks Folks;

I tried the various ideas provided and learned quiet a lot on how to
add/configure option's. Interestingly the easiest is to name the
states.state field to states.name. This way there was no need to
modigfy any code.

Appreciate all your help.

/guran

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en


No comments: