on 04-19-2015 8:43 AM
Hello experts,
I am creating an app in SAP UI5 for EMR. In that I will get some input from Doctor for prescription. So I need to update this record in my database after clicking Save button in my app. I am creating ODATA Services for app in Eclipse Kepler using model entities. So how can I create odata service for this after clicking Save button. Plz help me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For example:
var busy = new sap.m.BusyDialog({ text:"Saving..."});
busy.open();
oModel.create('/EntitSet', object, null,
function(){
busy.close();
},
function(oError){
var model = new sap.ui.model.json.JSONModel();
model.setJSON(oError.response.body);
sap.m.MessageToast.show(model.getData().error.message.value);
busy.close();
}
);
oModel refers to your oDataModel object, and "object" refers to the entity you want to create. This object is just a Javascript object with properties compatible with the odata model entity you are creating.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
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.