On Wed, Jul 27, 2016 at 3:43 PM, D R <rir....@gmail.com> wrote:

> Thanks, Marius
>
> Well, looks like it is not supposed to be easy to display the items of a
> select field.
>
> After playing around for some time I have:
> #set($obj = $doc.getObject('Customer Profile.Code.Customer ProfileClass'))
> #set($rawValue = $obj.getProperty('sListSupportLevel').value)
> #set($class = $obj.xWikiClass)

$class.get('sListSupportLevel').MapValues
>

Try this:

#set ($mapValues = $class.get('sListSupportLevel').mapValues)
$mapValues.get($rawValue).value

Hope this helps,
Marius


> This displays the map like
> {Code1=[Code1, PrettyName1, ], Code2=[Code2, PrettyName2, ]...}
>
> Now I feel lost again because I don't know how to get the "PrettyNames"
> matching the selected items out of the map.
>
> Boy I didn't imagine that it would be so complicated to display the
> selected items one beneath the other.
>
> Hope you guys could help me get this working and sorry for the hassle.
>
> Regards,
> Dennis
> _______________________________________________
> users mailing list
> users@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to