cancel
Showing results for 
Search instead for 
Did you mean: 

Binding suggestionItems after server call

mdixit_1401
Explorer
0 Kudos

Hi Experts,

I have a requirement where in I have to show suggestion in an input field but for that I need to make server call.

That is, after user types in something i need to make a server call and then the response should be bound to suggestion items list.

I tried using addSuggestionItem but for that I need to loop on the whole response and then inside for loop I can call this method of addSuggestionItem .

I was wondering is there a way, I can bind the result directly to the suggestion Item.

Thanks,

Mansi

Accepted Solutions (0)

Answers (2)

Answers (2)

karthikarjun
Active Contributor
0 Kudos

Wil this help?

SAPUI5 Explored

Referred from SAPUI5 sdk.

Thanks,

KA

saivellanki
Active Contributor
0 Kudos

Hi Mansi,

You can do it using model binding. Check this sample: JS Bin - Collaborative JavaScript Debugging

At load of page, try to type 'B' you won't get anything. Then click on 'Bind Suggestion Items' button and then start typing 'B' you will get suggestion values.

Regards,

Sai Vellanki.