Hi All,
i have two drop down one for Country and another one for Region based on country selection i want to populate region
below is the Code which i have used in view for Region
<Select id="idRegion">
<core:Item key="{Key}" text="{Value}" />
</Select>
Below is the Method is controller to fill region drop down
getRegion:function(oEvent){
var country = this.getView().byId("select");
var key = country.getSelectedKey();
console.log(key);
var region= this.getView().byId("idRegion");
var oFilter = new sap.ui.model.Filter('Key',sap.ui.model.FilterOperator.EQ, '+IN +');
region.setModel(oModel);
debugger;
region.bindElement({
path : '/regionSet',
filters : [oFilter]
});
},
i am able to call getEntityset method but filter i am getting blank
please suggest me where i am going Wrong.
Thanks
Ashish