Is the manifest.json for components only? -
while reading documentation sapui5, stumbled upon part application descriptor (see). says
the application descriptor provides central, machine-readable , easy-to-access location storing metadata associated application or application component.
although says "application" or "... component", can not figure out how used application , if necessary set manifest.json if not implementing component.
is there clarification if , how manifest.json used within sapui5 applications? purpose maybe data/implementation generation within sap web ide or future plans?
i'd appreciate answer on clarifying things, scn, sdn , openui5 pages don't give me clue it.
thanks in advance.
the data in manifest.json can accessed within sapui5 app , (of course) used component. can access in application in case have component based app. check step 20 of walkthrough tutorial @ https://openui5beta.hana.ondemand.com/#docs/guide/bf71375454654b44af01379a3c3a6273.html example of how access 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) meant used tools webide or container in app runs (think of fiori launchpad).
Comments
Post a Comment