Question

I got a view with departments and the corresponding head of this department. Some of those bosses have more than one department, so I use the "Show multiple values as separate entries" in my view.

enter image description here

But when I want to use a value picker in my XPage using this view, I get square brackets for all bosses who head more than one department:

enter image description here

How can I remove those brackets?

Was it helpful?

Solution

Use xe:simpleValuePicker instead of xe:dominoViewValuePicker.

<xe:this.dataProvider>
    <xe:simpleValuePicker>
        <xe:this.valueList><![CDATA[#{javascript:@DbColumn("","YourViewName","YourColumnName")}]]></xe:this.valueList>
    </xe:simpleValuePicker>
</xe:this.dataProvider>

Seems to be a bug in xe:dominoViewValuePicker, had the same square brackets in my example. But using xe:simpleValuePicker is simple too as you have to write only this one line of code @DbColumn(....

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top