Hi,
I would like to create multiple objects and attach to the same
document (page).
--- velocity script --------------------------------------------------
#if("$context.action" == 'inline' )
#set($obj = $doc.newObject("Intranet.AbPersonClass"))
#foreach($prop in $obj.xWikiClass.properties)
; $prop.prettyName
: $doc.display($!prop.getName(),$obj)
#end
$doc.save()
#end
--------------------------------------------------------------------
With this code I have two different behaviors:
* edit inline, add field, save => everything works well
* edit inline, press CANCEL => the system save an empty object
Is there a workaround?
Thank you,
Gianluca