Hello,
i have a custom object class + a from and "new" button. When i create an object,
using the following code
{{groovy}}
if(request.doCreate == "true"){
// Request for creating a new instance
obj= doc.newObject("Main.NewsClass")
obj.set("linkfr",request.thelien)
obj.set("titlefr","a test")
obj.set("linknl",request.thelink)
obj.set("titlenl",request.thetijtle)
obj.set("publication",request.thedate)
doc.save()
}
{{/groovy}}
the object is created but form properties not saved (please not i hardcoded "a
test" and even this property is not saved). Instead i obtain an object with
properties all empty. If i remove the calls to set(name,value), the object is saved
without properties instead of empty one, so code is somehow partially working?
Does someone have any suggestion?
David Delbecq