Re: [web2py] DAL join field access

2022-09-10 Thread lucas
yes, that worked perfectly. thank you massimiliano. lucas On Saturday, September 10, 2022 at 12:43:30 PM UTC-4 Massimiliano wrote: > Hi, > > I'm not sure to have understand correctly your question, but maybe you > need to use aliases: > > fields = [ > db.table1.id.with_alias('id'), > d

Re: [web2py] DAL join field access

2022-09-10 Thread Massimiliano
Hi, I'm not sure to have understand correctly your question, but maybe you need to use aliases: fields = [ db.table1.id.with_alias('id'), db.table2.last_name.with_alias('last_name') ] db(yourquery).select(*fields) Il giorno sab 10 set 2022 alle ore 13:47 lucas ha scritto: > hello o

[web2py] DAL join field access

2022-09-10 Thread lucas
hello one and all, you know how when you do a select join and the records come back where you have to access the field values by like db.table1.id or db.table2.last_name? and i know that under the select we can do like db.table1.ALL and db.table2.last_name, but we still have to access the fie