I can tell you that it can be done, anything which can be done by the user can be done with groovy. document.getxWikiClass().get("propertyName") returns an object of type element. http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi... I think you need to drop out of the api section into the core (which requires programming rights but so does groovy) document.getDocument().getxWikiClass() gives you an object of type BaseClass which I think is what you are after. http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xwi... Caleb Abel Solórzano Astorga wrote:
Hi everybody,
Is there a way to dynamically (through groovy code) change the values on a static list or on any other property of a xwiki class?
I am using *field = document.getxWikiClass().get("propertyName")* to get the property.
document is of type* com.xpn.xwiki.api.Document*.
But when I try to change the value using * field.getPropertyClass().setValues("val1|val2|val3")* I get a *null* value from* field.getPropertyClass()*
I am following the information on http://www.mail-archive.com/[email protected]/msg10692.html
I am using groovy on xwiki 2.0.2.24645
Regards
Abel _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users