on 12-27-2016 7:27 AM
i already coded for combobox in selectionChange(event)
onCountrybind: function(oEvent)
{ var regCombo = this.getView().byId("idCRegion"); var country = sap.ui.getCore().byId("idCCombobox"); var countryFilter = country.getSelectedItem(); regCombo.setEditable(true); var Filter = new sap.ui.model.Filter( "COUNTRY_KEY", "EQ", countryFilter); var regCombo = this.getView().byId("idCRegion"); var rModel = new sap.ui.model.odata.ODataModel("mymodel"); rModel.setSizeLimit(999999); var oRItemTemplate = new sap.ui.core.ListItem({key:"{REGION_KEY}",text:"{REGION_KEY}", additionalText:"{REGION_TEXT}" }); regCombo.setModel(rModel); regCombo.bindAggregation("items",{path: '/REGION',template: oRItemTemplate,filters:Filter}); }
<ComboBox id="idCCombobox" showSecondaryValues="true" selectionChange="onCountrybind"/>
<ComboBox id="idCRegion" showSecondaryValues="true"/>
i am getting error like---"Cannot read property 'getSelectedItem' of undefined"
Hello Manohar,
You can use some local json model as per the selection of combobox-1 you need to filter the values,Values are to maintain in the local JSON Model and the values need to bind to the combobox-2 .
Thanks,
Deepak.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Manohar,
You can use some local json model as per the selection of combobox-1 you need to filter the values,Values are to maintain in the local JSON Model and the values need to bind to the combobox-2 .
Thanks,
Deepak.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
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.