I have something like:
val jobs = Job.where(...).fetch()
val fieldsToDisplay = Seq(Job.status, Job._id, ...)
val header = fieldsToDisplay map { _.name }
val tbl = jobs map { j => fieldsToDisplay map { _.getValueIn(j) } }
renderTable(header, tbl)
...and it's that hypothetical getValueIn
I'm looking for.
I've been unable to find anything, but perhaps more experienced Lift'ers know a trick.
Each Field has a name that is unique within the Record