adminloginButton: function (oEvent) {
var model1 = new sap.ui.model.odata.ODataModel("TEST");
sap.ui.getCore().setModel(model1);
model1.read("/admin(ADMINID,ADMINNAME,ADMINPASSWORD)", {
success: function (oData, oResponse) {
},
error: function (err) {
}
});
}
Here what to write in the success function to read a particular row from the table admin having three columns ADMINID,ADMINNAME & ADMINPASSWORD
(ALL THREE ARE KEYS) and then to message toast the values in rows.