Skip to Content

Unable to use sap.ui.ux3.Shell

Hi Team,

I am unable to use sap.ui.ux3.Shell. My requirement is that, I have 3 different view. In that three view have different controls. But problem is that when I am navigate to one view to another view it shows the below error.

Uncaught Error: Error: adding element with duplicate id 'Btn_Validate' at constructor.k.registerElement (sap-ui-core.js:134) at f.e.register (sap-ui-core.js:134) at f.constructor (sap-ui-core.js:134) at f.constructor (sap-ui-core.js:134) at f.constructor (sap-ui-core.js:134) at new f (sap-ui-core.js:122) at f.createContent (ViewBill.view.js:94) at eval (JSView.js:6) at Function.d.runWithPreprocessors (sap-ui-core.js:134) at f.sap.ui.core.mvc.JSView.onControllerConnected (JSView.js:6)

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Dec 16, 2016 at 03:51 PM

    controls in your app should have distinct control ids. in this case, it seems like Btn_Validate is a duplicate id on 2 views. Please provide a different id to the controls, or remove it so that the sapui5 lib assigns one id dynamically

    Add comment
    10|10000 characters needed characters exceeded