Hey guys!
on a SMARTGRID I added a "linked_table" argument. ... no I have only the
view button left. No way to modify neither the parent nor the child.
What goes wrong.. sorry, what I made wrong?
Coding:
grid = SQLFORM.smartgrid(db.CUSTOMER, linked_tables=['CUST_PEOPLE'],
editable=True)
(the editable argument I added later ... no effect)
Table definitions:
db.define_table("CUSTOMER",
Field("CUSTNAME", "string", length=30, label=T("Customer Name"),
notnull=True, default=None),
Field("DESCRIPTION", "text", label=T("Customer Description"),
notnull=True, default=None),
Field("COMMUNICATION", "text", label=T("Access Description"),
notnull=True, default=None),
Field("LOGINNET", "text", label=T("Login Network"), notnull=True,
default=None),
Field("DOCU", "upload", label=T("Documentation Access")),
Field("DOCU2", "upload", label=T("Documentation Access 2")),
Field("DOCU3", "upload", label=T("Documentation Access 3")),
migrate=True, format='%(CUSTNAME)s')
"""
db.define_table("CUST_PEOPLE",
Field("id_CUSTOMER", db.CUSTOMER),
Field("NAME", "string", label=T("Name of Contact"), length=80,
notnull=True, default=None),
Field("JOB_POSITION", "string", label=T("Job Position"), length=80,
notnull=True, default=None),
Field("EMAIL", "string", length=30, label=T("Email"), notnull=True,
default=None, requires=IS_EMAIL()),
Field("TEL", "string", length=80, label=T("Telephone"), notnull=True,
default=None), migrate=True)
Thanks for your help
Beat
--
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-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.