Access items of DBListClass

I´m sorry for the probably simple question, but I cant find any documentation to this topic. In my class I have a database list and I want to manipulate the view perspectiv in the class sheet. I tried to acces the selected list items via “$doc.get(‘project’)” but returns me a String with the list items, not a real list. Also I tried to get the list items “$class.get(‘project’)” but I dont know the method to get a list back. Can you help me?

Try with getValue(). See for instance https://www.xwiki.org/xwiki/bin/view/Documentation/DevGuide/Scripting/APIGuide/#HAddanewusertoaListofUsersxobject . get() calls the displayer so it returns the string used to display the property value.

Thank you, it worked!