[web2py] SQLFORM factory field width is less than the text on IE8, works fine on FF

2013-10-30 Thread Sarbjit
Hi, You can use the car appliance available in web2py appliances (github) to show this issue (https://github.com/mdipierro/web2py-appliances/tree/master/CarSales). *In Controller, add a function as :-* def testform(): form = SQLFORM.factory( Field('TestField', requires=IS_IN_SET(['Test

[web2py] SQLForm Factory

2013-06-24 Thread Tom Russell
If I have a form factory with 3 tables, how would I define the fields I wanted shown for each? This is the code for my controller. I have tried to set it in several spots but all of them throw an error. def register_patient(): mark_not_empty(db.patient) mark_not_empty(db.emergencycontacts

[web2py] SQLFORM factory with multiple correlated tables

2012-05-13 Thread csantos
Hi, Suppose I have two tables, with a one-to-one relationship: db.define_table('user', Field('name')); db.define_table('car', Field('color'), Field('user_id', db.user)) What is the easiest way to create an SQLFORM that would store *correlated*data in both fields? For instance, create a user with

[web2py] SQLFORM factory field name problem

2011-02-28 Thread rāma
SQLFORM factory field name with underscore doesn't submit properly in the below case: SQLFORM.factory(Field('fieldname', - Submit OK SQLFORM.factory(Field('select_fieldname', - Submit failed got a None returned I think. just to add: form catches the session as well. Regards, Rama

[web2py] SQLFORM factory field name problem

2011-02-28 Thread rāma
SQLFORM factory field with underscore in them doesn't seem to submit properly for the below case: