[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 marketplace

[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 hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Thanks Dave, but still getting this error:

[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(p{Order.this.lots * Order.this.marketPlace.lotValue}/p) What is the

[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 hannes.flo...@gmx.li 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

[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 hannes.flo...@gmx.li 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 * *