Not exactly a cake solution, but in the past I've created a database view an concatenated the two columns I want in the SQL (ex) concat(last_name, ', ', first_name) and then passed the view results to generateList(). Perhpas you could do the same with query() and pass those results to generateList(), but I've not tried that method so can't say it would work, just thinking out loud. Hope that is helpful.
On Jul 27, 11:17 pm, Beertigger <[EMAIL PROTECTED]> wrote: > Is there any way to get values from multiple fields into a select box? > > After much searching, I've come to the conclusion I'm not going to > find the answer without appealing to those far wiser than myself... > > Here's an old thread for reference, which discusses, w/o resolution, > exactly what I'm looking for: > > "* Is it possible to use multiple fields to make up the value of the > select box? Such that it would come out looking something like > > <option value='field1value'>field2value - field3value</option>" > > http://groups.google.com/group/cake-php/browse_thread/thread/50a2ecaf... > > So, just wondering if anyone ever made any progress on this. Saw the > code in trac, but it seems to be for 1.2 (?). Couldn't get it to work, > anyway. I'd find this functionality very valuable.... > > Thanks to anyone for any help! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
