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


  • 0
    herv√©-mayou-10727  8 years ago

    Hello,

    Are there options to take care of a case like this one, where child_atom would change according to parent_atom?

     

     

    db.define_table('atom',
        Field('value', 'string', unique=True, required=True),
        Field('description', 'text'),
        auth.signature,
        format='%(value)s'
    )
    db.define_table('user_atom',
        Field('user', db.auth_user, required=True),
        Field('top_atom', db.atom, default=1, required=True),
        Field('parent_atom', db.atom, required=True),
        Field('child_atom', db.atom, required=True),
        auth.signature
    )
    

    If not, I can (eventually) provide help to (eventually) add them...

     
    Thanks
    replies (1)
    • segmentation-fault 8 years ago

      Hey! It was designed with multiple tables in mind. Sorry, but for your case this widget will be overkill.

Commented on:

Yet another dropdown chain (cascade) widget with select-or-add-new links capability. Note: Now is working with web2py 2.2.1

Hosting graciously provided by:
Python Anywhere