If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!

  • 0
    gilsondev  10 years ago
    This code not work: def update(): record = db.client.id[1] form = SQLFORM.factory(db.client, db.address, record) This error: SyntaxError: define_table argument is not a Field or Table: SUBSTR(grupos.id,2,(3 - 2))

Commented on:

It often happens that you have two tables (for example 'client' and 'address') which are linked together by a reference and you want to create a single form that allows to insert info about one client and its default address. Here is how.

Hosting graciously provided by:
Python Anywhere