My tables are:
t_contact (the parent)
t_paypal
t_paypal_fails
t_paypal_contacted

All the child tables refer to the parents ID.

I have a controller that looks like this:

@auth.requires_login()
def paypal_manage():
    form = 
SQLFORM.smartgrid(db.t_contact,linked_tables=['t_paypal','t_paypal_fails', 
't_paypal_contacted'], onupdate=auth.archive,searchable=dict(parent=True, 
child=True,))
    return locals()

Using smartgrid I wish to achieve  a grid that allows the user to search by 
contact but not actually add contacts via that controller. Once they have 
found the contact they should be able to create records for the contacts's 
linked tables.

I was thinking that it would be something like this:
create=dict(parent=True, child=False)

Is this possible? If so what is the correct syntax?

Many thanks in advance.

-- 

--- 
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/groups/opt_out.


Reply via email to