Good day, dear experts!
I need to send the data to the application in Jason format:
var sendInfo = {};
sendInfo.TEXT1 = "text data1";
sendInfo.TEXT2 = "text data2";
sendInfo.TEXT3 = "text data3";
and
sendInfo.FILECONTENT = content of file;
for sending data I need to use only POST
and the application must return MESSAGE
what the model I need to use?
sap.ui.model.odata.ODataModel();
or
sap.ui.model.json.JSONModel();
I can not read a MESSAGE if I use odata.ODataModel(); and POST
oModel.read("MESSAGE", function(){
alert("MESSAGE");
});
not work.
if I use
json.JSONModel (); and try to use the POST, data is not sending.