[web2py] Re: Dropdown list in form

2013-12-13 Thread Warrick
Thanks guys, Both worked! -- 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] Re: Dropdown list in form

2013-12-12 Thread Jim S
I'd try changing your battle_log def to: db.define_table('battle_log', Field('battle_date', type='date', label=T('Battles Date')), Field('battles', type='integer', label=T('Battles'), requires=IS_IN_SET(['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',

[web2py] Re: Dropdown list in form

2013-12-12 Thread Massimo Di Pierro
I am not sure I fully understand but the problem is that Field('training_id', label=T('Training Status'), requires=IS_IN_DB(db,db.training.id,'%(type)s')), is meant to be a reference but it is not defined as such, replace it with Field('training_id','reference