Re: [xwiki-users] create new xclass property

2015-04-20 Thread Marius Dumitru Florea
On Mon, Apr 20, 2015 at 11:31 AM, TOTOUM NEMKAM, Eva wrote: > Hello, > > Please, i have two problems : > 1) i try to add an object using this code > ## Create an object > #set($obj = $doc.newObject("XWiki.SomeClass")) > $obj.set("field1","value1") > $obj.set("field2","value2") >

[xwiki-users] create new xclass property

2015-04-20 Thread TOTOUM NEMKAM, Eva
Hello, Please, i have two problems : 1) i try to add an object using this code ## Create an object #set($obj = $doc.newObject("XWiki.SomeClass")) $obj.set("field1","value1") $obj.set("field2","value2") ## Save the object in the page $doc.save() but when I click on "save a