Hi all,
This is working fine.and thank you for your response,
The code is
In xml view put entity set as "A>/List/results",
onInit : function(){
oController=this;
oController2=this;
var that=this;
oController.oData1 = new sap.ui.model.odata.ODataModel ("url",true);
var fnSuccess=function(oData,oResponse)
{
var jsonArray ={
"List":oData
}
var oJSONModel = new sap.ui.model.json.JSONModel();
sap.ui.getCore().setModel(oJSONModel);
oJSONModel.setData(jsonArray);
oController.getView().setModel(oJSONModel,"A");
}
oController.oData1.read("/MatSet ",null,null,true,fnSuccess)
// oController.setModel(oJSONModel);
},