|
> Hi Nate: > I need to send a Sql query or a condition to your autocomplete > component, how can I do it? > I have this one, that brings all the descriptions > <?php echo $ajax->autocomplete('Supply/Description'> > But I want to see only the supplies that belong to one supplier > ex Supply/Supplier_id= 1 > please help me :( > Gleny > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
hi everybody, I'm new in cakephp, and I need to send a Sql query or a condition in the autocomplete component, how can I do it? I have this one, that brings all the descriptions <?php echo $ajax->autocomplete('Supply/Description'> But I want to see only the supplies that belong to one supplier ex Supply/Supplier_id= 1 please help me :( Gleny --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
Does this supplier id change between page refreshes? Why not just have <?php echo $ajax->autocomplete('Supply/Description/1'); > or something similar? If it does need to change dynamically, I would recommend viewing your page source to see what the generated javascript is, modifying it appropriately (to read the supplier_id from somewhere in the page), and just put this javascript in your view manually, instead of using the ajax helper. On Nov 22, 8:04 am, "[hidden email]" <[hidden email]> wrote: > hi everybody, I'm new in cakephp, and I need to send a Sql query or a > condition in the autocomplete component, how can I do it? > I have this one, that brings all the descriptions > <?php echo $ajax->autocomplete('Supply/Description'> > But I want to see only the supplies that belong to one supplier > ex Supply/Supplier_id= 1 > please help me :( > Gleny --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
hi Grant: Sorry for the delay in my response, thanks for your help in my autocomplete problem I used your advice and change manually in the javascript and works :) regards Gleny --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [hidden email] To unsubscribe from this group, send email to [hidden email] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Powered by Nabble | Edit this page |
