Hi,
I've been trying to figure out how to connect a TreeTable control with data from a non-SAP web server. Here's what I have so far;
I have a sample program that uses json in a variable called oData.
I have a TreeTable control named oTable.
I create a model;
var oModel = new sap.ui.model.json.JSONModel();
I feed the oData variable into it;
oModel.setData(oData);
Finally, I feed the oModel to the oTable;
oTable.setModel(oModel);
That all makes sense. What I want to do is get the data from a web service. The only examples I've been able to find show how to configure an SAP data service and then connect to that. They don't give any details of the format that the SAP data service is sending. I don't have access to an SAP system so I can't set one up to reverse-engineer the data. I'm going to be writting my own oData service for this so I need a couple of things;
1. An example of json or xml data as it's sent from a web server.
2. An example of how you pull that data from the web service to an SAP ui model.
I could really use some help. I haven't been able to find any examples that make sense to me.