Re: [xwiki-users] Your ideas to save number in custom object using Groovy code?

2010-04-09 Thread Valdis Vītoliņš
Investigating http://platform.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema and trying other number formats got it working for float (xwikifloats table). Groovy code: .. Float daudzums daudzums = Float.parseFloat(string) ... Actually I need only integer eg 11 in place of 11.0 but this is minor

[xwiki-users] Your ideas to save number in custom object using Groovy code?

2010-04-09 Thread Valdis Vītoliņš
I'm trying to save custom object values, and can only for strings using advanced script from http://platform.xwiki.org/xwiki/bin/view/DevGuide/GroovyNotificationTutorial For Number type (tried integer and long), I couldn't save value in any way. Tried explicitly define as int daudzums and daudzu