Consider linked data: db.define_table('church', SQLField('name', requires=IS_NOT_EMPTY()) db.define_table('person', SQLField('name', requires=IS_NOT_EMPTY(), SQLField('church'), db.person)
And the easy thing to do is then SQLFORM(db.person). Cool. OK, so what about when doing data entry at the international conference of something religious. Is there a way to easily enter a new church at the same time as entering a new person? That is, a way to somehow click on a person form and inserts in the same view a subordinate form for entering a church? Maybe the user interface would look like: - adding to the church select-one a popup an "Add..." item - when the "Add..." item is selected show a second form in the same view (for entering the linked data, in this case church). Is there a way to add a customized item to a select-one popup menu? And, to further cause trouble, instead of a menu, is there a way to do an Ajax type search for the church (there are a lot of churches in the world) instead of a mile-long menu? (I suppose with button next to it saying "Create new..." that reveals the second form.) Thanks, -kb --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---