Hello! I have SQLFORM: db.tt_main.GROUP_ID.requires = IS_IN_DB(db((db.a_groups.id == db.tt_main. GROUP_ID) & (db.a_groups.INACTIVE == 0) & (db.a_groups.FO == 1)),db.a_groups .id,'%(NAME)s') db.tt_main.MODULE.requires = IS_IN_DB(db(db.tt_main.MODULE), db.tt_main. MODULE) form = SQLFORM(db.tt_main,fields=['MODULE','GROUP_ID'],labels = {'MODULE':T( 'Module'),'GROUP_ID':T('Name of group')},submit_button=T('Select timetable' )) if form.validate(): #don't work ↓ #form.vars.id = db.person.*select*(**dict(form.vars)) for that table of timetables: db.define_table( 'tt_main', Field('GROUP_ID','reference a_groups',unique=True), Field('MODULE', 'integer',unique=True), migrate=False ) If I add readonly=True,record_id=True for SQLFORM None in Form on site, like on picture. I just want get id of timetable in user interface for create ability edit it.
-- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/ac42423d-7179-4312-8454-0cab9929b2cd%40googlegroups.com.