Skip to Content
avatar image
Former Member

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

hi

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

Thanks,

Kotesh.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Oct 14, 2014 at 11:41 AM

    Use the method getSelectedItems.

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

    Example:

    var aItems = yourMultiComboBox.getSelectedItems();

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • Mar 03, 2015 at 08:56 PM

    use getSelectedKeys() method.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 04, 2015 at 03:06 AM

    Hi kotesh,

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

    SAPUI5 Explored

    Regards

    Indrajith

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 04, 2015 at 04:53 AM

    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

    Add comment
    10|10000 characters needed characters exceeded