Hi Jason,
Below is briefing:
var oSearchFld_Search | = new sap.ui.commons.SearchField("searchField",{value:"",enableListSuggest: false,showExternalButton : true, | ||||||||||
enableClear : true,maxLength:50,tooltip:"Please enter a Search Term", | |||||||||||
enableFilterMode : true, | |||||||||||
oApp.fnsearchMasterTable(oEvnt.getParameter("query")); | |||||||||||
} | |||||||||||
}) ; |
In fnsearchMasterTable() function, we have AJAX call to DB . The data is stored in JSON model and the table is bound to the model
Some snippets as below:
var oTable | = sap.ui.getCore().byId("resultTable"); | |
oTable.setModel(appModel) ; | ||
oTable.bindRows("/Search_Result"); |
Hope this helps.
Regards,
Archana