01-20-2017 6:43 PM - edited 01-21-2024 10:02 PM
Hi,
I have implemented sap.m.select for Country and Province dropdowns.
On change Country event I am setting the filter on Province (to only show province realted to selected Country). When I debug Change country event , the new province value is still not available inside function after following filter is applied on Provice.
bindingProvince.filter([new sap.ui.model.Filter("CountryID", sap.ui.model.FilterOperator.EQ, selectedCountry)]);
The new Province is correctly selected on UI.
My requirement is to also trigger Province change event to capture that Provice has also been changed altough user didn't actually change the value explicity. I did not use combo box control as my requirement is to also default the first entry.
Is there any way to fireChange Province event with new value whenever Country change is triggered ?
Thanks,
TJ
Hi Tarun ,
Did you try fire change event (https://sapui5.hana.ondemand.com/1.26.6/docs/api/symbols/sap.m.Select.html#fireChange)
thanks
Viplove
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
why you need that event to be fired?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
10 | |
8 | |
8 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.