Hi Michael,
Thanks a lot for your help
Just one last query:
I have defined my Odata Model and Table inside create content
And on clicking Submit button, I want to pass these input parameter values to Odata Service as shown below
var oExcButton = new sap.ui.commons.Button({
text : "Submit",press:function(){
var sort1 = new sap.ui.model.Sorter("CostCenter");
oTable.bindRows("/InputParams(P_ControllingArea='"+sap.ui.getCore().byId("cArea").getValue()+"',P_FromExpectedPostingDate='"+sap.ui.getCore().byId("sDate").getValue()+"',P_IsReadItem='"+sap.ui.getCore().byId("isRead").getValue()+"',P_ToExpectedPostingDate='"+sap.ui.getCore().byId("eDate").getValue()+"')/Results", sort1);
oDialog1.close();}});
But using this code I am getting error: Uncaught ReferenceError: oTable is not defined
The reason I think is because my table is defined inside CreateContent() function.
Just wanted to know how to pass these values to my Odata Service
You can check code here: http://jsbin.com/pobicatu/1/edit
Regards,
Rohit