http://web2py.com/books/default/chapter/29/06?search=self+reference#Self-Reference-and-aliases
Il giorno mercoledì 15 maggio 2013 14:31:26 UTC+2, Domagoj Kovač ha scritto: > > Hi, > > i have a table of locations: > > db.define_table('entry_location', > Field('name', 'string', > required=True, > requires=IS_NOT_EMPTY(), > label=LABEL(T("Naziv"), _for="entry_location_name")), > Field('parent_id', 'reference entry_location', > requires=IS_NULL_OR(IS_IN_DB(db, 'entry_location.id', > '%(name)s', zero=T("Molimo odaberite roditeljsku lokaciju"))), > label=LABEL(T("Roditelj"), _for= > "entry_location_parent_id")), > Field('gps_x', 'double', > label=LABEL(T("GPS X koordinata"), _for= > "entry_location_address_2")), > Field('gps_y', 'double', > label=LABEL(T("GPS Y koordinata"), _for= > "entry_location_address_3")), > Field('zoom', 'integer'), > ) > > Is there any way that i could select all child's of certain location? > > > -- --- 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 web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.