model:
# coding: utf8 db.define_table('dept', Field('name',unique=True,label='Department Name'), format='%(name)s') db.define_table('course', Field('dept_id','reference dept'), Field('name',unique=True,label='Course Name'), format='%(name)s') db.define_table('files', Field('course_id', 'reference course'), Field('documentx','upload')) controller: def create_doc(): form = SQLFORM(db.files).process(next=URL('show_doc')) return dict(form = form) this works perfectly but the problem is when I open create_doc it shows a drop-down for courses only which is fine but how can I make it so that it asks to select department(in drop-down) then course(in drop-down) and then upload the document. -- 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.