Hi,
My database looks like this
db.define_table('Device', Field('Name'), format='%(Name)s')
db.define_table('Firmware', Field(DeviceID, 'reference Device',
requires=IS_IN_DB(db, 'Device.id'),
Field('Name'))
I want to create a form that combine these 2 table fields. For Device, I
want user to select the existing devices in the database (via the dropdown
list), but if they don't see the device they want, they can add the new
device without leaving the form (or maybe have a windows pop-up with new
form to add Device, and when it's done, the drop-down list will have the
new added device)
How can I do that in web2py?
Thanks
--
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.