cancel
Showing results for 
Search instead for 
Did you mean: 

"TypeError: this.byId(...) is undefined" after Patch 1.26.9

0 Kudos

Dear experts,

after implementing Patch 1.26.9 as described by Masa we get error "TypeError: this.byId(...) is undefined":

This is caused by our view replacement:

If we delete this view replacement, app works fine. However this should not be the solution.

Does anybody have the same problem?

Thanks,

Christoph

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182372
Active Contributor
0 Kudos

post your extension code (view and controller)

0 Kudos

Hi Maksim,

please find code attached.

Thanks,

Christoph

former_member182372
Active Contributor
0 Kudos

Christofer, that's a lot of code 😉

first - run the app in debug mode, add parameter sap-ui-debug=true to URL

second - once exception happend, set a breakpoint (you can click on file in console and will lead you to the source code), re-run the code


check the stack of the exception (and post it here)

santhu_gowdaz
Active Contributor
0 Kudos

if u use xml view this.byId() won't work so use this.getView().byId().

former_member182372
Active Contributor
0 Kudos

this is not true, controllers byId just calls getView().byId()

Controller.prototype.byId = function(sId) {
return this.oView ? this.oView.byId(sId) : undefined;
};