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
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 =
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 = $
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
>
>
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
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
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
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
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