Skip to Content
avatar image
Former Member

Remove dynamic component ID from view ID

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Nov 01, 2017 at 11:54 AM

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

    Add comment
    10|10000 characters needed 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?

      Thanks

      Zdenek