hi,

is it possible to implement header and detail form? (i mean 1 header
(course) can have many details (students))
e.g.

db.define_table('student',
                Field('name',
                      requires = IS_NOT_EMPTY()
                      )
                )

db.define_table('course',
                Field('name',
                      requires = [IS_NOT_EMPTY(),
                                  IS_NOT_IN_DB(db,
                                               'course.name')]
                      ),
                Field('student_id',
                      db.student,
                      requires = IS_IN_DB(db,
                                          db.student.id,
                                          '%(name)s')
                      )
                )

thanks and best regards,

steve van christie

Reply via email to