Skip to Content

SAPUI5 Input Suggest doesn't show

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 11, 2017 at 03:45 PM

    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

    Add comment
    10|10000 characters needed characters exceeded