cancel
Showing results for 
Search instead for 
Did you mean: 

No Selection in Listbox

0 Kudos

Hi,

In a listbox, I am utilizing the On Select event. When someone clicks on an item, I want something to happen.

However, when the listbox is populated, the first item is selected. If someone clicks on the already selected item, then no On Select is fired. I want to have no items selected, so that when an item is clicked on, the On select will be fired.

If possible, I would like the On Select event to fire, even when an item that is already selected is clicked on.

Any ideas?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

TammyPowlas
Active Contributor
0 Kudos

I'm wondering if Nikhil's answer here would help - remove the default selection - and then when the user selects something from the Listbox the event is fired?  See answer here:

0 Kudos

You know, that's what I thought, but it is not working for me.

Design Studio 1.4 hosted on BI Server 4.1

LB_INSTANCE.setItems(DS_INSTPRO.getMemberList("U_INSTANCE_NAME", MemberPresentation.TEXT, MemberDisplay.TEXT, 50));
LB_INSTANCE.setSelectedValue("");
LB_SUBPROD.setItems(DS_INSTSUBPRO.getMemberList("U_INSTANCE_NAME", MemberPresentation.TEXT, MemberDisplay.TEXT, 50));
LB_SUBPROD.setSelectedValue("");

I fill the list boxes then try to clear the selection, but it is being ignored.

0 Kudos

Works if Multiple Selection is set to true.

Answers (0)