on 03-31-2016 10:28 AM
Hello Experts,
I am trying to retrieve data from a Calculation View using a XSJS service. The call to the service looks like:
jQuery.ajax({
url : '../../../services/dealHeader.xsjs?cmd=getDealHeader_FCATemplate'+strFCAString,
method : 'GET',
dataType : 'json',
success : function(data) {
dealDataFCA = data;
var dealModelFCA = new sap.ui.model.json.JSONModel(dealDataFCA);
console.log("Deal Model FCA " + dealModelFCA);
sap.ui.getCore().setModel(dealModelFCA,"FCADeals");
sap.ui.getCore().setModel(dealModelFCA);
sap.ui.getCore().getEventBus().publish("app", "DataLoadedFCA");
graphTile.setBusy(false);
},
error : onErrorCall,
async : true
});
The above call is successful, but it does not return any data; it returns an empty JSON string... When I try to run a query on the Calculation view using the same selection parameters, it is able to give me results. I validated the code I had written in the .xsjs file, and it seems to look fine.
Can someone please guide on what I could be missing, could there be a problem in the Calculation View script?
Regards,
Divyata Dal
Hi Divyata,
What happens when you run this xsjs in browser ? Also could you share your xsjs code
Regards,
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 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.