cancel
Showing results for 
Search instead for 
Did you mean: 

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

Ajit_K_Panda
Product and Topic Expert
Product and Topic Expert
0 Kudos
207

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.

RaminS
Participant
0 Kudos

Good question. I don't think it's possible, but would be interested to hear from experts. I never liked the decision to shift control to a json property file instead of JS programming. The problem with json files is that they are static, you can't use programming logic.

I felt that this was the same mistake SAP made with Web Dynpro, they took away the ability for developers to write Javascript logic, by making the framework to it for you. In the long run, that strategy does not work.

View Entire Topic
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