Skip to content

Commit

Permalink
Input suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerem Kayacan committed Jan 7, 2022
1 parent cc534c9 commit c9e7918
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/new/input-suggestion.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<MultiInput id="CategoryMultiInput" suggestionItems="{/EtCategorySet}" showValueHelp="false" suggest=".onCategorySuggest">
<core:Item id="CategoryMultiInputItem" key="{Category}" text="{Categoryname}"/>
</MultiInput>

***********************************************************

onCategorySuggest: function (oEvent) {
oEvent.getSource().getBinding("suggestionItems").filter([new sap.ui.model.Filter("Categoryname", sap.ui.model.FilterOperator.Contains,
oEvent.getParameter(
"suggestValue").toUpperCase())]);
},
File renamed without changes.

0 comments on commit c9e7918

Please sign in to comment.