on 10-14-2014 11:37 AM
hi
i want a combo box with two values display now i am using multi combobox in xml views please help.
Thanks,
Kotesh.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi kotesh,
Check out this link. It speaks about multiComboBox in XML view
Regards
Indrajith
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
use getSelectedKeys() method.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use the method getSelectedItems.
https://sapui5.hana.ondemand.com/sdk/#docs/api/symbols/sap.m.MultiComboBox.html
Example:
var aItems = yourMultiComboBox.getSelectedItems();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.