Re: dropdown select with lastname and firstname

2010-12-22 Thread _k10_
you could probably look at Set::format http://api13.cakephp.org/class/set#method-Setformat if virtual fields arent working for you. 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 subscri

Re: dropdown select with lastname and firstname

2010-12-22 Thread Somchok Sakjiraphong
The thing I hate about virtual fields like this is your code starts becoming database dependent. For example public $virtualFields = array( 'full_name' => 'CONCAT(User.last_name, ", ", User.first_name)' ); would only work if you were using MySQL and not for Postgres users like me. On Mon, Dec

Re: dropdown select with lastname and firstname

2010-12-19 Thread eldorado2768
Tried it and it works great! Thanks. On Dec 17, 5:26 pm, cricket wrote: > On Fri, Dec 17, 2010 at 6:25 PM, eldorado2768 > > > > wrote: > > I am having a lot of difficulty understanding how to get my select box > > to display properly. I have a table called owners and a related table > > called b

Re: dropdown select with lastname and firstname

2010-12-18 Thread McBuck DGAF
If you called the virtual field 'name,' wouldn't the automagic take care of everything else (the select box) from there? On Dec 17, 8:26 pm, cricket wrote: > On Fri, Dec 17, 2010 at 6:25 PM, eldorado2768 > > > > wrote: > > I am having a lot of difficulty understanding how to get my select box >

Re: dropdown select with lastname and firstname

2010-12-17 Thread cricket
On Fri, Dec 17, 2010 at 6:25 PM, eldorado2768 wrote: > I am having a lot of difficulty understanding how to get my select box > to display properly. I have a table called owners and a related table > called buildings with the owner_id as the foreign key. I figured out > how cakephp looks for a fie

dropdown select with lastname and firstname

2010-12-17 Thread eldorado2768
I am having a lot of difficulty understanding how to get my select box to display properly. I have a table called owners and a related table called buildings with the owner_id as the foreign key. I figured out how cakephp looks for a field called name and then if it doesn't find it will just defaul