Please excuse if this is a very basic question, I'm learning. :(
I have this class:
class X {
def do_something {
db withSession {
val qresult = for {
(d, o) <- TABLE1 innerJoin TABLE2 on (_.TB1ID === _.TB2ID)
} yield(d, o)
}
}
}
and I would like to build a HTML table out of this, something like:
(record1) d.TB1ID d.F1VALUE d.F2VALUE o.F1VALUE o.F2VALUE o.TB2ID
(record2) d.TB1ID d.F1VALUE d.F2VALUE o.F1VALUE o.F2VALUE o.TB2ID
....
would anyone be kind enough to give me a pointer where to look? I've found plenty of examples but I have trouble connecting the qresult
value to something I can bind in my template.
I am using Lift and Slick 1.0.1.