Agree with it. According to my practice empty can table can be referenced and the dropdown list is created by without any item. By defining the referenced tables first does solve my problem.
在 2013年3月25日星期一UTC+8下午10时48分02秒,Cliff Kachinske写道: > > As I understand it, the table does not have to exist when using the > 'reference sometable' syntax. Or anyway that's how it's supposed to work. > > I'm not 100% confident in it, though so I always make it a practice to > create the reference tables first. > > On Monday, March 25, 2013 6:31:16 AM UTC-4, Alan Etkin wrote: >> >> I think I kinda figured out the problem. The order of defining tables >>> seems matter. Tables to be referenced need to be defined before the >>> referencing tables. Guess it's a rookie mistake. >> >> >> I don't think it's a matter of table definition order. Maybe there aren't >> any referenced records in the table so the dropdown widget is not created. >> >> About the modified_on created_on, web2py has some features that create >> tables under the hood, i.e., for record versioning. Perhaps you want to >> disable them at the model by changing the feature options (they are >> documented in the book) >> >> -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.