On May28, 2:53pm, annet.verm...@gmail.com wrote: > Iceberg, > > Thanks for the hint. Adding requires=self.requires to the widget > solved the problem partially. The problem is now reduced to: > > when the user clicks the link the update_adress function is called: > .... > which displays an update/delete form, in which the plaats field is > empty. > > Kind regards, > > Annet.
Did not look carefully in your code but, if you are expecting some default value to be showed up in your widget, you need to define _value=blah for your widget. Again, you'd better take a look at the out-of-box widgets and understand how they work. It takes time but it can eventually save your time. (PS: I am doing so right now, when I am refactoring my first web2py app. Knowing widget well could shorten my app's code a lot. :-P) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---