私の検索方法は、jsonmodelの最初のノードでのみ機能しています。別のフィルタを作成する必要はありますか?ナビゲーション・リストでのバインド検索
///ビュー
<tnt:NavigationList id="navlist" items="{path:'cars>/Desc'}" >
<tnt:NavigationListItem id="navlistitem" text="{cars>TITLE}" expanded="true" items="{path:'cars>ITEMS',templateShareable:true}"
key="{cars>number}">
<tnt:NavigationListItem id="navListItemSecond" text="{cars>TITLE}" key="{cars>number}">
</tnt:NavigationListItem>
</tnt:NavigationListItem>
</tnt:NavigationList>
//コントローラ(検索方法)
onLiveSearch:function(evt) {
var filterString = evt.getParameter('newValue');
var filters = [];
var tree = this.getView().byId('navlist');
var binding = tree.getBinding('items');
if (filterString && filterString.length > 0) {
var filter1 = new sap.ui.model.Filter('TITLE', sap.ui.model.FilterOperator.Contains,
filterString);
filters.push(filter1);
}
binding.filter(filters);
},
アイデアはありますか? – xGenius