[web2py] Re: web2py DAL tables reference values not shown as drop downs

2013-10-24 Thread Massimo Di Pierro
Yes. The tables class_tbl and subject_bs need a format attribute (one each). On Thursday, 24 October 2013 09:49:57 UTC-5, ranjith wrote: > > Can that be done?? > > On Wednesday, 23 October 2013 22:29:50 UTC+5:30, ranjith wrote: >> >> Oh good. Thanks for the response. I added the format and it wor

[web2py] Re: web2py DAL tables reference values not shown as drop downs

2013-10-24 Thread ranjith
Can that be done?? On Wednesday, 23 October 2013 22:29:50 UTC+5:30, ranjith wrote: > > Oh good. Thanks for the response. I added the format and it worked. > > But, here I have one problem. In the table(subject_class) I am only having > a combination of two foreign keys and no other columns. So, a

[web2py] Re: web2py DAL tables reference values not shown as drop downs

2013-10-23 Thread ranjith
Oh good. Thanks for the response. I added the format and it worked. But, here I have one problem. In the table(subject_class) I am only having a combination of two foreign keys and no other columns. So, adding the format to any/both of those values will only show an integer in the dropdown whic

[web2py] Re: web2py DAL tables reference values not shown as drop downs

2013-10-23 Thread Massimo Di Pierro
Because the referenced tables do not have a format = '%()s' representation. On Wednesday, 23 October 2013 02:45:15 UTC-5, ranjith wrote: > > Hi, > > I have defined some tables as below, > db.define_table('subject_class', > Field('class_id', 'reference class_tbl'), > Field('subject_id'