on 04-27-2017 12:33 PM
Hi,
Of course I can get the OData model in a controller java script code in such way:
____________Cut __________________
var oDataModel = new sap.ui.model.odata.ODataModel("/bydesign/sap/byd/odata/cust/v1/exchangerate/");
____________Cut __________________
but the model (URI) is already definied in the App in manifest.json file:
I would like to set oDataModel variable without mention of URI again.
Or there is probably some way to get the URI value which was mentioned in manifest.json
Is there any solution?
Thanks a lot.
Thank you Jun,
Could you please give me a bit bigger fragment?
Yet I did not understand where I should put the expression in component.js.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
in your component.js you can access it like this.
this.getMetadata().getManifestEntry("sap.app").dataSources.mainService.uri
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.