ListBox Allow Multiple Selections

I have an xpage with a listbox that is populated by @DBColumn statement, I have Allow Multiple Selections checked. The only way i have been able to select multiple names is by holding the ctrl key. Once I have multiple names selected I submit my form, however only the first name is being passed and I can’t find any documentation on how this is supposed to work. Any advice would be appreciated.

Subject: “only the first name is being passed”

The problem is not in your listbox control – it’s in what you’re doing with the selections. But you didn’t say anything about this or show any code, so it’s not possible to identify what you’re doing wrong.

Subject: Code

Sorry about that here is my code that populates the listbox, its what I have as computed in the values tab of the xpages listbox. Juust grabbing all the names in the column of the view.

var dept = @Unique(@DbColumn(@DbName(),“viewPersonProfile”,1));

dept;

Subject: Solved

When trying to get the values of the listBox I was using the first line of code below. However this was only returning the first value of my multiple selections. Instead I used the second line of code below and was able to get all the values selected.

Returns only single value: document.getItemValueString(“FieldName”)

Returns Multiple values that were selected:

getComponent(“idName”).getValue()