[Lift] Re: howto do simple calculation with MappedInt

2009-07-10 Thread Hannes
Dave, This helped me a lot to understand things better! thanks. > Sorry it took so long to get to this... my inbox keeps growing... sigh. > > Anyway, Order.scala: 64 should be: > > > def currentCost = Order.this.lots * > (Order.this.marketPlace.obj.map(_.lotValue.is) openOr 0 ) > > The mar

[Lift] Re: howto do simple calculation with MappedInt

2009-07-09 Thread David Pollak
Sorry it took so long to get to this... my inbox keeps growing... sigh. Anyway, Order.scala: 64 should be: def currentCost = Order.this.lots * (Order.this.marketPlace.obj.map(_.lotValue.is) openOr 0 ) The marketplace field is a foreign key reference... so you have to get the row that's repr

[Lift] Re: howto do simple calculation with MappedInt

2009-07-05 Thread Tobias Daub
here are the two files, thanks! > Send me the file and I'll debug it. > > On Fri, Jul 3, 2009 at 3:06 AM, Tobias Daub > wrote: > > > Thanks Dave, but still getting this error: > > > /home/wacky/NetBeansProjects/virtualMarket/src/main/scala/org/tobster/model/Or

[Lift] Re: howto do simple calculation with MappedInt

2009-07-03 Thread David Pollak
Send me the file and I'll debug it. On Fri, Jul 3, 2009 at 3:06 AM, Tobias Daub wrote: > > Thanks Dave, but still getting this error: > > > /home/wacky/NetBeansProjects/virtualMarket/src/main/scala/org/tobster/model/Order.scala:51: > error: value lotValue is not a member of Long > overri

[Lift] Re: howto do simple calculation with MappedInt

2009-07-03 Thread Tobias Daub
Thanks Dave, but still getting this error: /home/wacky/NetBeansProjects/virtualMarket/src/main/scala/org/tobster/model/Order.scala:51: error: value lotValue is not a member of Long override def _toForm = Full({Order.this.lots * Order.this.marketPlace.lotValue}) What is the explanatio

[Lift] Re: howto do simple calculation with MappedInt

2009-06-22 Thread David Pollak
On Sun, Jun 21, 2009 at 6:38 AM, Tobias Daub wrote: > > I'm stucked again with the simple things > > I've a trait that extends BaseLongKeyedMapper and I wanna add a field > (currentCost) that does some calculation. Nothing special. Here's the code: > > /* > * Order.scala > * > * To change