Skip to Content

Remove dynamic component ID from view ID

Nov 01, 2017 at 03:11 AM


avatar image
Former Member

I am using SAPUI5 routing and I read that the manifest.json by default turns off the autoprefixId but when I check the element / html, there is always the component id __component0-- added in front of the view id that I have given and making it unavailable for me to access it via sap.ui.getCore().byId(). is there anyway to stop sapui5 from adding the __component0 prefix in front of the control id that I have given?

10 |10000 characters needed characters left characters exceeded

can you share some more details with screenshots?

* Please Login or Register to Answer, Follow or Comment.

1 Answer

Jun Wu Nov 01, 2017 at 11:54 AM

you should stop using sap.ui.getCore().byId(), not the other way around

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Jun Wu,

could you please be more concrete? I’m facing the same problem. What is the better way to get the control instance?