cancel
Showing results for 
Search instead for 
Did you mean: 

how to get selected values from multi combobox in xml views from sapui5

Former Member
0 Kudos

hi

i want a combo box with two values display now i am using multi combobox in xml views please help.

Thanks,

Kotesh.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

have a look into this link below,

JS Bin - Collaborative JavaScript Debugging

Hope this code might help you in debugging your code

regards,

Nagarjun

Former Member
0 Kudos

Hi kotesh,

Check out this link. It speaks about multiComboBox in XML view

SAPUI5 Explored

Regards

Indrajith

former_member189842
Participant
0 Kudos

use getSelectedKeys() method.

mauriciolauffer
Contributor
0 Kudos

Use the method getSelectedItems.

https://sapui5.hana.ondemand.com/sdk/#docs/api/symbols/sap.m.MultiComboBox.html

Example:

var aItems = yourMultiComboBox.getSelectedItems();

Former Member
0 Kudos

hi Mauricio

i am using code like this

<m:ComboBox

            id="TEXT123"

            path="/DATA/DROPDOWN/0/VALUE"

            >

           </m:ComboBox>

here  /DATA/DROPDOWN/0/VALUE is table with two fields ,

now its not working what is the problem.


data is like this 

oModel.oData.DATA.DROPDOWN[0].VALUE

[Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object]

oModel.oData.DATA.DROPDOWN[0].VALUE[0]

Object {VALUE: "AXXX~000", TEXT: "Summary"}


thanks,

Kotesh.

Former Member
0 Kudos

another way i am trying is

<MultiComboBox placeholder="Choose your sheet"  id="sheetname"

               

                                        width = "500px"

                                        items="{

                                               path: '/DATA/DROPDOWN/0/VALUE'

                                        }" change="sheetselectionFinish">

                                         <core:Item key="{VALUE}" text="{TEXT}" />

                                  </MultiComboBox>

it gives dropdown but i am unable to get selected records from it in controller.

thanks,

Kotesh.