on 11-27-2018 7:28 AM
I am new to SAPUI5. I see that we use manifest.json to configure all our meta data details that will help the browser while launching our application. And, I also see that neo-app.json also serves the same purpose as manifest.json. Is the former replacement of the latter or is there any difference between the 2 files.
TIA
No,
Manifest.json is for ui5 configurations like Routing, Enhancements, Models, versions etc..,
https://sapui5.hana.ondemand.com/#/topic/be0cf40f61184b358b5faedaec98b2da
Neo-app.json in on premise dont have much use, it is used in webide fro configuring the paths.. lets say, for a ui5 app to run, it needs odata service and ui5 resources,
if you want to load the ui5 resources, you load it from onpremise, openui5 or from the webide(onpremise and cloud) itself(which is fast here), so inorder to do this, you need to configure the path from which it has to reach in the neoapp.json
Also, if you will configure the odata service destination in cloud platform, you need to use that path whever an odata request is sent from you app when you are running in the webide(not from gatewaysystem) as we will get same origin issue if we directly use our odata service, so we will configure the path in neoappjson.
For cloud, its whole different game and different options are available which are not applicable to the onpremise atleast for now i think.
https://help.sap.com/saphelp_uiaddon20/helpdata/en/28/fa7538c67e4280a0b7708de2951278/frameset.htm
https://archive.sap.com/discussions/thread/3876507
BR,
Mahesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mahesh,
Firstly thank you for the inputs. I understand that we are using neo-app.json for the configuration of data resource paths. But I believe this can also be done by using the destination option available in the cockpit and add its reference under the models section of manifest.json. Is this approach similar to what neo-app.json does?
Hi maheshkumar.palavalli,
Can i use neo-app.json to configure an external API path? Let's say i need to get data from a public API but i don't need to expose the whole URL directly on javascript code in my app and also for security purposes because i won't use SCP, just on premise and the custom app into Fiori launchpad.
BR,
Maurício
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.