I am looking for the best way to incorporate values from a combobox in an Velocity template. I know of the :
- Code: Select all
$valueLists.getDisplayValue
and
- Code: Select all
#foreach ($item in $valueLists.<valuelistname>)
I want to show all selected items from a combox field in Servoy as past of my VR.
I tried using
- Code: Select all
#if ($!item.realValue.indexOf($field)>0)
as part of my foreach, but that does not work.
What would be the best way to handle this?
W.
P.S. full code for the foreach is:
- Code: Select all
#foreach ($item in $valueLists.[my_valuelist])
#if ($!item.realValue.indexOf($[my_field])>-1)
$item.displayValue
#end
#end