Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

live search issue with oData model

$
0
0

Hi All,

 

I have a list to bind the data using oData model.

 

for this list , i have to implement live search at front end level ( it should not go to backend to filter the data ).

 

i have used filters but front end going back to gateway for each and every character which i entered for live search in search field.

 

below is my XML view for list display.

 

<SearchField id="searchField" placeholder="Search" liveChange="onSearchQueue" showRefreshButton="{device&gt;/isNoTouch}"

       tooltip="{i18n&gt;masterSearchTooltip}" width="100%">

</SearchField>

 

 

<List growing="true" growingScrollToLoad="true" id="list" mode="SingleSelectMaster" noDataText="{i18n&gt;masterListNoDataText}"

  select="onSelect">

  <items id="masterList">

    <ObjectListItem counter="0" id="mainListItem" class="queueHeight" markFavorite="false" markFlagged="false" press="onSelect"

                             title="{QName}" type="{device&gt;/listItemType}"  >

         <core:ExtensionPoint name="extListItemInfo"/>

   </ObjectListItem>

  </items>

</List>

 

data binding as below in controller:

 

this._olist = this._oView.byId("list");

  var oModel = this.getView().getModel();

  oModel.setUseBatch(false);

  this._olist.setModel(this.getView().getModel());

  this._olist.setGrowing(false);

  this._olist.bindItems({

  path: this._path,

  template: this._oItemTemplate

  });

 

 

 

 

Please let me know any alternative solution for live search without Filters .

 

Regards,

Vamshi.


Viewing all articles
Browse latest Browse all 8950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>