Similar question has appeared in this list earlier with no good answer.
Though I suspect, this approach seems necessary is due to weak design.
Can you describe use case why it seems necessary in place of database
list,
where you can set hql query for filtering necessary elements?
Valdis
I want to create properties for a new class on a blank
document with groovy. I can do the following:
def doc = xwiki.getDocument("space.docname")
c = doc.getxWikiClass();
and look at elements of a class that already exists by doing:
prop = c.get('propertyname')
propToEdit = prop.getPropertyClass
propToEdit.setValues('a|b|c')
But, how can I add a new property to a class that has no existing properties/fields?
Thanks,
-Mike
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:…
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users