cancel
Showing results for 
Search instead for 
Did you mean: 

item list box with multiple selection

Former Member
0 Kudos

Hi,

How to use the item list box UI element with multiple selection , can anyone please share the demo example code on how to use the multiple selection option for item list box element ?

also in the layout of Item list box UI element I given the visible length as 10 but even if the value is greater then 10 it does not show the scroll bar for selecting multiple option instead it shows the all the element in the one list itself .

please guide me to resolve both of this error

With Regards,

Amar Kamat

Accepted Solutions (0)

Answers (2)

Answers (2)

uday_gubbala2
Active Contributor
0 Kudos

Hi Amar,

As how pointed out by Thomas there is no special coding necessary for realizing this functionality. I have sent across to you a sample example which I have with myself. There isn't anything differently in there but hope that it would make it clearer for you.

Regards,

Uday

Former Member
0 Kudos

Hi Thomas / Uday ,

Thanks for the suggestion .

Hi Uday,

I also got u r demo example .

you guys rocks ....

Thanks a lot

Regards,

Amar Kamat

Former Member
0 Kudos

Hi Uday,

I understand the on how to implement the multiple selection logic in Item list box .but the way I need is somewhat different.

I will expalin my scenrio:

I need to build the hierarchy for 4 nodes.

1. Line of buisness

2 . Division

3. Region

4. Subsidiary

when multiple division are selected it should give the valid region list in region list depending upon the list of division selected in the divison item list box and same for Subsidiary based on multiple region values.

How I achieve this as there is no event is triggered by the UI element when the multiple values are selected.

if u can help me out on this it will be the great help.

Regards,

Amar Kamat

uday_gubbala2
Active Contributor
0 Kudos

Hi Amar,

Am not quite sure about your requirement. Do you mean to say like:

You are displaying Line of buisness, Division, Region & Subsidiary as ListBoxes with multiple selection. And you need to dynamically populate the values of Division, Region & Subsidiary based on the multiple values selected in the item above?

Regards,

Uday

Former Member
0 Kudos

Hi Uday,

you got my problem right .. I need the same as u explained but the problem I am facing here is as for multiple selection there is no event gets triggered. so I am confused about in which event I can capture the selected elements values and populate the below item with values.

Regards,

Amar Kamat

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

For performance reasons, multiple selection doesn't trigger any server side event. You will need to add a button or some other external event trigger to pickup the selections and populate the linked item list boxes.

Former Member
0 Kudos

Thanks thomas...

Regards,

Amar Kamat

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You need only set the multipleSelection property to allow multiple selections. You can read the selected items by reading the context node with the method get_selected_elements.