Re: [xwiki-users] [Velocity] get items of static list

2016-08-08 Thread D R
That worked, many thanks. I still have much to learn. 2016-07-28 14:24 GMT+02:00 Marius Dumitru Florea < mariusdumitru.flo...@xwiki.com>: > On Wed, Jul 27, 2016 at 3:43 PM, D R wrote: > > > Thanks, Marius > > > > Well, looks like it is not supposed to be easy to display the

Re: [xwiki-users] [Velocity] get items of static list

2016-07-28 Thread Marius Dumitru Florea
On Wed, Jul 27, 2016 at 3:43 PM, D R 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'))

Re: [xwiki-users] [Velocity] get items of static list

2016-07-27 Thread D R
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 =

Re: [xwiki-users] [Velocity] get items of static list

2016-07-26 Thread Marius Dumitru Florea
On Tue, Jul 26, 2016 at 5:36 PM, D R wrote: > Hi, > > many thanks. So now I have > > #set($obj = $doc.getObject('Customer Profile.Code.Customer ProfileClass')) > #set($rawValue = $obj.getProperty('sListSupportLevel').value) > #foreach( $level in $rawValue ) >

Re: [xwiki-users] [Velocity] get items of static list

2016-07-26 Thread D R
Hi, many thanks. So now I have #set($obj = $doc.getObject('Customer Profile.Code.Customer ProfileClass')) #set($rawValue = $obj.getProperty('sListSupportLevel').value) #foreach( $level in $rawValue ) $level #end and it displays the raw values. I feel dumb asking this but I

Re: [xwiki-users] [Velocity] get items of static list

2016-07-13 Thread Marius Dumitru Florea
Have you checked the link I gave you? It has an example that shows how to "Retrieve the raw value of the property". On Tue, Jun 28, 2016 at 4:43 PM, D R wrote: > Hi, > > Yes, I want to display the values of the field ddlProductFamily. It is a > multi-select list field. In the

Re: [xwiki-users] [Velocity] get items of static list

2016-06-24 Thread Marius Dumitru Florea
On Thu, Jun 23, 2016 at 5:32 PM, D R wrote: > Hi, > > I am currently implementing my first XWiki application and starting to > learn velocity. There is one thing that makes me mad. > > There is a static list field with code "ddlProductFamily". > > > I try to display the items

[xwiki-users] [Velocity] get items of static list

2016-06-23 Thread D R
Hi, I am currently implementing my first XWiki application and starting to learn velocity. There is one thing that makes me mad. There is a static list field with code "ddlProductFamily". I try to display the items in this list in a nice way (one below the other). Different approaches