check the sfFormExtraPlugin, especially the sfAutocompleterWidget (or something like that)... it will give the answer...
On Fri, Jan 22, 2010 at 3:43 PM, EddieG <ed...@umdiewelt.de> wrote: > Hi everybody, > > I have two tables...: > - simpleTable (with attributes id and fk_veryFullTable) > - veryFullTable (with attributes id and URL) > ... where simpleTable has a foreign key to veryFullTable. > > And I want to use an admin generator form to add an entry to my > simpleTable. In the default setting I get a form with a drop down > field including a million entries from the veryFullTable. Which would > be just very stupid ;-) > > The better way: I supply a sfWidgetFormInput() called urlAsString. And > with a custom sfValidator I check, that it is an existing url. Works > like charme. > > But how to I get my form to use the correct foreign key instead of the > given URL? I don't know which would be the right way of altering the > form data in that way! > > I really appreciate your help, > Eddie > > -- > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com<symfony-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- Have a nice day! Alecs As programmers create bigger & better idiot proof programs, so the universe creates bigger & better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0722 621 280 -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.