I am trying to output a list of values from the dropdownmultiple control in the binding section for the DB template.
I have looked at some of the threads and tried number methods like that
#foreach($foo in $sys.item.getProperty(“DDMfieldName”).getValues())
$foo.String #end
but I am getting the error below in the debugging mode.
Problem parsing expression: #foreach($foo in $sys.item.getProperty(“rx:DDMfieldName”).getValues()) $foo.String #end reported problem: Lexical error at line 1, column 2. Encountered: “f” (102), after : “#”
Is the expression Editor won’t able to compile the # symbol? or there is a specifc way to define in the Bindings for outputting a list of values?
Sorry, I don’t quite understand and I probably being thick. In my db template, I won’t have a slot associated with it so I won’t be able to use any methods related to the slot.
I have spent sometimes playing with it and tried quite a few methods using the $user.psoListTools.asList but I still no joy.
For both methods, I am still getting either a list or array data type returned and I need to get all the values into a string format probably with a comma separater. I just find it strange that we couldn’t use a variable with and increment symbol like a plus sign.
Is it possible if you could provide me some more information or may be a sample code?
Has anyone managed to get the values from sys_DropDownMultiple control and concatenate it into a single string within jexl binding (essentially what Friendy was going for here)? Or is it even possible?