SAPUI5 - Uncaught TypeError: this.getRouter.navTo is not a function -


i referring code used in tdg master-detail demokit application.

i getting error "uncaught typeerror: this.getrouter.navto not function".

i have written console.log("is router fine? "+ this.getrouter().tolocalestring()); before this.getrouter.navto prints "eventprovider company.accounts_positions_splitpage.myrouter"

any suggestions issue?

thanks

you have call

this.getrouter().navto() 

instead of

this.getrouter.navto() 

with this.getrouter not execute function, function object. there try execute function navto(), object itselve not provide such function.

with this.getrouter() execute function , return value (a router) object. on router can use navto(), did in console.log.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -