is this possible?
I'd like to present a tabular result of a stored procedure in a SAPUI5 Table control.
The well-described approach for tables so far is to create an OData service definition at design time pointing to a specific table or a view. However, I don't have a table or a view at design time.
At the moment I use JSON Model bound to a Table control and load that model using loadData(), supplying the URL of my XSJS script which runs the stored procedure and builds the JSON string from the tabular response. However, a) this approach is potentially client-heavy and is only good for smaller size tables, b) from the architecture point of view, the JSON layer in this case shouldn't be here -- rather, I should be able to write something like
var oModel =new sap.ui.model.odata.ODataModel("dynamic-OData-model.xsjs");
Is that not possible, or am I missing something?