on 10-23-2015 11:10 AM
search method in controller of value help is posted.No reference of xml(like id of some list) is to be taken since the search field is in the controller part of value help.plz help.
if (oFilterBar.setBasicSearch) {
oFilterBar.setBasicSearch(new sap.m.SearchField({showSearchButton:true, placeholder:"Search", enabled:true,
LiveChange:function(){
if (this.getValue().length > 0){
var oDataObj = new sap.ui.model.odata.ODataModel("http://services.odata.org/Northwind/Northwind.svc/");
//var oDataObj = new sap.ui.model.json.JSONModel("http://services.odata.org/Northwind/Northwind.svc/Categories?$format=json");
sap.ui.getCore().setModel(oDataObj,"OdataObj");
this.bindElement({ path: "/CompanyCodeValuehelp", parameters: {expand: "CompanyCodeName",select: "CompanyCodeName"}});
}
}}));
}
i have to implement search field in value help..s
hould i write this code in the suggest function of search field or sumwhere else?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Monika,
handleValueHelp - Refer this method. It will clear your doubts
Thanks,
Karthik A
Hi Monoka,
JSON Model - The JSON model is a client-side model and, therefore, intended for small datasets, which are completely available on the client. The JSON model does not support mechanisms for server-based paging or loading of deltas. It supports, however, two-way binding.
Thanks,
Karthik A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.