on 2020 May 29 11:52 AM
I have a sap.m.Input on which I have I have a suggest handler as follows, which fetches data from the backend.
handleMaterialSuggest: function (oEvent) {
var sTerm = oEvent.getParameter("suggestValue");
var aFilters = [];
if (sTerm) {
aFilters.push(new Filter('Matchcode', sap.ui.model.FilterOperator.Contains, sTerm.toUpperCase()))
aFilters.push(new Filter('MaterialNumber', sap.ui.model.FilterOperator.Contains, sTerm.toUpperCase()))
}
var orFilter = new Filter({ filters: aFilters, and: false })
var oBinding = oEvent.getSource().getBinding("suggestionItems")
oBinding.filter([orFilter])
oEvent.getSource().setFilterSuggests(false)
}
I want to set a busy indicator on the control when suggestions are being fetched, and I can do this easily enough with oEvent.getSource().setBusy(), but I don't see any event that I can use to remove the busy indicator when the request returns.
How would I remove a busy indicator once the suggestions have loaded?
You could use dataReceived event as show below:
https://answers.sap.com/questions/12444513/sapmsearchfield-not-showing-odata-suggestion-items.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
12 | |
11 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.