Skip to Content
0

SAPUI5 Input Suggest doesn't show

Apr 11, 2017 at 12:33 PM

70

avatar image
Former Member

Hi @all,

i have a strange issue here. Regarding my example: http://jsbin.com/gecoyogoxi/1/edit?html,output

You can see, that the SerachField and Suggestion works fine BUT the suggestion with the Input Field doesn't work.

Any idea? The request is sent to the odata and also the response look quite ok.

regards Micha

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Srikanth KV Apr 11, 2017 at 03:45 PM
0

Aggregation "suggestionItems" is wrong, you are supposed to use "core:Item"

                 <Input
                    id="idProductField2"
                    width="40em" 
                    showSuggestion="true"
                    suggest="onSuggest"
                    suggestionItems="{/Products}">
                    <suggestionItems>
                        <!-- <SuggestionItem text="{ProductName}" description="{ProductName}" key="{ProductName}"/> -->
                        <core:Item text="{ProductName}" />
                    </suggestionItems>
                </Input>   

Adjusted the code in http://jsbin.com/gecoyogoxi/1/edit?html,output

Share
10 |10000 characters needed characters left characters exceeded