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 items of a > > select

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')) > #set($rawValue =

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 ) > $level > #end > >

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 was

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 application I added

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

2016-06-28 Thread D R
Hi, Yes, I want to display the values of the field ddlProductFamily. It is a multi-select list field. In the application I added a new item where I selected "Value1" and "Value3" of the list field. It displays fine using $doc.display('ddlProductFamily') but I want to print the selected values belo

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

2016-06-23 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 in this list in a n

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

2016-06-23 Thread Pascal BASTIEN
Hi, It depend... First, what are displayed for $ddlProductFamily (your page in view mode)? {{velocity}} $ddlProductFamily {{/velocity}} Something like ['value1,'value2'] or xwikixxwith random number or $ddlProductFamily ? If you want display value from any page: http://platform.xwiki.org/xwik