cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to use sap.ui.ux3.Shell

0 Kudos

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)

Accepted Solutions (0)

Answers (1)

Answers (1)

SergioG_TX
Active Contributor
0 Kudos

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