Re: generatelist and Formhelper::Select
Will do, thanks!! On Aug 9, 11:16 am, rtconner <[EMAIL PROTECTED]> wrote: > Yes you can do it with generateList. Just use the conditions array > wisely. Depending on the database setup you are using you can include > the keyword distinct in your conditions. I forget the details. You'll > have to do a search. > > On Aug 8, 2:27 pm, libfree <[EMAIL PROTECTED]> wrote: > > > Hi all, I'm new to cake but have been playing with php for a while. I > > am using Ajax to create a set of select boxes that will create a > > simple search. When you select the value in one it will decrease the > > number of options to select from in the following boxes until it > > finally displays the narrow list. I am wondering if there is a way > > for me to use Generatelist to return only unique values. I have a > > table of available items and when I populate the Brand I don't want to > > have duplicates. Do I need to do this manually with a custom query? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: generatelist and Formhelper::Select
Yes you can do it with generateList. Just use the conditions array wisely. Depending on the database setup you are using you can include the keyword distinct in your conditions. I forget the details. You'll have to do a search. On Aug 8, 2:27 pm, libfree <[EMAIL PROTECTED]> wrote: > Hi all, I'm new to cake but have been playing with php for a while. I > am using Ajax to create a set of select boxes that will create a > simple search. When you select the value in one it will decrease the > number of options to select from in the following boxes until it > finally displays the narrow list. I am wondering if there is a way > for me to use Generatelist to return only unique values. I have a > table of available items and when I populate the Brand I don't want to > have duplicates. Do I need to do this manually with a custom query? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
generatelist and Formhelper::Select
Hi all, I'm new to cake but have been playing with php for a while. I am using Ajax to create a set of select boxes that will create a simple search. When you select the value in one it will decrease the number of options to select from in the following boxes until it finally displays the narrow list. I am wondering if there is a way for me to use Generatelist to return only unique values. I have a table of available items and when I populate the Brand I don't want to have duplicates. Do I need to do this manually with a custom query? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---