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
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
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
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
SQLFORM factory field with underscore in them doesn't seem to submit
properly for the below case:
5 matches
Mail list logo