on 07-13-2017 12:45 AM
Hi to all,
I'm a sapui5 begginer and I'm traying to do an odata call function with CheckFlightAvailability from sap gateway demo system. I'm using a default model for this exercise, but when I call function, it returns 404 as response, this is the code for my controller file:
I checked the network window on my browser and the metafile is loaded so I assume that my connection is ok, does anybody could help on this issue ?
Greetings,
Moisés.
Issue solved, I corrected parameters declaration,
Greetings
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please try the following code to fetch the data.
oODataModel.read("/CheckFlightAvailability",{
success:function(odata){
sap.m.MessageToast.show("success");
},
error:function(oerror){
sap.m.MessageToast.show("error");
}
})
Regards
GB
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.