25 Jan
2010
25 Jan
'10
5:21 a.m.
Hi, I am trying to change the values for a static list field in a wiki class programatically but so far I have only figured out how to display them. Is it possible to set class property values for static list fields programatically through velocity or groovy code? The code that I'm using to display the values is pasted below: #set($classdocname = "Test.TestClass") #set($classdoc = $xwiki.getDocument($classdocname)) #foreach($field in $classdoc.getxWikiClass().properties) * $field.prettyName $doc.displayEdit($field.xWikiClass.get("values"), "${field.name}_" , $field) #end Thanks, Radek