on 2017 May 19 1:01 AM
I have a sap.m.SearchField bound to a JSONModel with over 200 items. After triggering .suggest() on the SeachField object, there's a delay before the suggestions are rendered. I'd like to show a busy indicator before .suggest() and then hide the busy indicator once the rendering of the suggestions list is complete. So, is there an event on the SearchField I can listen for to hide the busy indicator?
Request clarification before answering.
There is an event called 'suggest'. Did you try with that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is an event called 'suggest'. Did you try with that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Of course. The suggest event is triggered when the SearchField is focused or the searchValue changes.
I'm calling .suggest() within my onSearchFieldSuggest(oEvent) handler.
The SearchField is a little tricky, since the suggest() method toggles visibility of the suggestions list. What I would like to be able to do is display a busy indicator after calling suggest(true), then hide the busy indicator once the suggestion list is actually rendered.
User | Count |
---|---|
58 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
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.