Is manifest.json only for components?

While reading the documentation for SAPUI5, I came across a part of the description of the application descriptor ( See ). It says:

An application descriptor provides a central, machine-readable, and easily accessible location for storing metadata associated with an application or application component.

Although he says "application" or "... component", I canโ€™t understand how it is used for the application, and if you need to actually install manifest.json if I do not implement the component.

Is there any clarification if and how manifest.json is used in SAPUI5 for applications? Is an assignment possible for data generation / implementation in the SAP Web IDE or for future plans?

I would appreciate any answer for clarification, since the SCN, SDN and openUI5 pages do not give me a hint.

Thanks in advance.

+4
source share
1 answer

Access to data in manifest.json can be obtained from the SAPUI5 application and (of course), which is used by the Component. You can only access it in your application if you have a component-based application. Check out the example step 20 of the tutorial on going through https://openui5beta.hana.ondemand.com/#docs/guide/bf71375454654b44af01379a3c3a6273.html for example access to the manifest. Json:

// set invoice model - local var oConfig = this.getMetadata().getConfig(); var sNamespace = this.getMetadata().getManifestEntry("sap.app").id; var oInvoiceModel = new JSONModel(jQuery.sap.getModulePath(sNamespace, oConfig.invoiceLocal)); this.setModel(oInvoiceModel, "invoice"); 

And yes, manifest.json (aka app descriptor) is also intended to be used by tools like WebIDE or the container your application is running in (think of the Fiori Launchpad).

+4
source

All Articles