cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can the manifest be dynamically provided in Component.js?

Ajit_K_Panda
Product and Topic Expert
Product and Topic Expert
0 Kudos
1,146

Is it possible to modify manifest or provide a new manifest dynamically in component.js?
Any example or reference is available?

Or any hooks available to change manifest dyanmically?

Note: Want to change routes pattern and targets.

Accepted Solutions (0)

Answers (3)

Answers (3)

junwu
SAP Champion
SAP Champion
0 Kudos

https://community.sap.com/t5/additional-blogs-by-sap/add-new-route-to-extension-app-in-sap-ui5/ba-p/...

 

if you want to manipulate the router, that should give you some idea.

marcel_schork62
Explorer
0 Kudos

Hi, 

yes it is. Follow the thread here to find pros and cons about providing the manifest.json dynamically. 

https://community.sap.com/t5/technology-q-a/solutions-for-supporting-dynamic-odata-annotation-url-fo...

Best regards,

Marcel

Noel_Hendrikx
Active Contributor
0 Kudos

Hi there,

Could you give a brief example of what you would like to achieve? The patterns in manifest are there to do the trick already, right? Maybe the patterns are not specific enough in your case?

If you want to do it dynamically, please have a look at:

https://sapui5.hana.ondemand.com/sdk/#/api/sap.m.routing.Router

https://sapui5.hana.ondemand.com/sdk/#/api/sap.ui.core.routing.Router

Regards,

Noël