cancel
Showing results for 
Search instead for 
Did you mean: 

How to loop at multiple selection from ItemListBox

Former Member
0 Kudos

I have an item listbox whose datasource is MultipleTeamList.

Cardinality is set to 1...n.

MultipleSelection is enabled.

How do I loop at the selected items within the listbox?

I have a button which I click which is supposed to process the selected items.

Since I'm selecting multiple, do i still need to use onLeadSelect?

pls help

thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

abhijeet_mukkawar
Active Contributor
0 Kudos

Hi Anton,

check out this thread , exactly what you are looking for..

regards

Answers (1)

Answers (1)

Former Member
0 Kudos

Hai,



int size=wdContext.nodeItems().size();
for(int i=0;i<size;i++){
IPrivatexxxView.IItemsElement ele1=wdContext.nodeItems().getItemsElementAt(i);
if(wdContext.nodeItems().isMultiSelected(i)){
String item=ele1.getItem();
wdComponenetApi.getMessageManager.reportSuccess(item);
 }
}

Regards,

Naga