Hello,

Can someone point me how to access data from Box object return by
mapper query:

Here is example (mvn scala:console)

scala> new bootstrap.liftweb.Boot().boot

scala> import pl.com.company.model._
import pl.com.company.model._

scala> import _root_.net.liftweb.mapper._
import _root_.net.liftweb.mapper._

scala> var r = RejDocBin.find(By(RejDocBin.DocBinId,4))
r: net.liftweb.common.Box[pl.com.company.model.RejDocBin] = Full
(pl.com.company.model.RejDocBin=
{docbin...@1c10834,docbinid=4,contenttype=image/jpeg,description=})

scala>

I need to retrieve contenttype field and check if it is not null
However how to get by RejDocBin object from Box ?
Best regards,

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to