cancel
Showing results for 
Search instead for 
Did you mean: 

ItemListBox onLeadSelect Event

Former Member
0 Kudos

I have one itemlistbox and I want to invoke an action when the user selects an Item on the ItemListBox, is this possible with the onLeadSelect event?

I'm not sure if this is the correct usage of this event property but I'm using it right now and is not working =S

Any suggestions??

Thanks...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos
Context:
- Items (node)
---- Text (attribute, string)

ItemListBox.dataSource = Items
ItemListBox.text = Items.Text
ItemListBox.onLeadSelect = ItemSelected

void onItemSelected(...)
{
  IItemsElement selectedItem = wdContext.nodeItems.currentItemsElement();
}

Armin

Former Member
0 Kudos

Thanks Armin for your reply.

But I'm using ItemListBox.multipleSelection = true.

Considering this, it works the same way?

Former Member
0 Kudos

Yes, but there is no event fired for a multi-selection, so you have to use another action to query the multi-selected items (node elements).

Armin

Former Member
0 Kudos

Hi Armin,

I would like to use the ItemLiytBox of Web Dynpro for java. How should i set

the properties of the node element (context) in case of multiple selection.

And How can i add element dynamically and retrieve these elements.

Thank you in advance