Hi to all!
I’m trying to learn how to populate lists:
{{velocity}}
#set($class = $xwiki.getDocument("XWiki.XWikiUsers").getxWikiClass())
#set($list = '')
#set($list = $class.get("first_name").getListValues())
#set($map = $class.get("last_name").getMapValues())
#foreach($listitem in $list)
* First name: $listitem Last name: $map.get($listitem).getValue()
#end
{{/velocity}}
But the empty resultset returned.
Where is my mistake?
Thanks.