Thank you, Tim. My previous confusion comes from which field should be format as IS_IN_SET or IS_IN_DB once 2 tables have many-to-many links or single-to-many links, how to represent related field in controller and view. Previously listed web posts really take confusions to a beginner. So I will post my experience, a simple case to explain that.
On Wednesday, January 22, 2014 4:02:00 AM UTC+8, Tim Richardson wrote: > > to get drop downs you need to set a validator in the field definition. > IS_IN_SET is one validator which causes SQLFORM to automatically make a > dropdown. so you don't do anything in SQLFORM. Rather you set up your data > model when defining tables. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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.