openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

The TDG demo app fails on routing

Open js1972 opened this issue 12 years ago • 5 comments

OpenUI5 version: 1.20.5

The TDG example application in the SDK at test-resources/sap/m/demokit/tdg does not instantiate the custom router MyRouter.js in UIComponent - therefore the custom methods such as myNavToWithoutHash() cannot be found causing the app to fail.

js1972 avatar May 16 '14 16:05 js1972

Further to this - after looking at the code it doesn't seem to me that you can define a custom router in the way shown. I suspect the TDG demo was built with a yet to be released version of sap.ui.core.routing.Router. I also found that routing did not work with the POA demo app either.

grahamrobbo avatar May 19 '14 03:05 grahamrobbo

This will be fixed with version 1.20.7

sorry for the late fix...

ghost avatar May 26 '14 13:05 ghost

Hi, version 1.20.7 is available. Issue should be fixed. Regards, Janina

blaesius avatar Jun 12 '14 13:06 blaesius

Thanks Janina, all good now... Maybe you could tell me why its considered "best-practice" to use a "custom" router class? (a custom router being the reason the app didn't work on versions earlier than 1.20.7)

js1972 avatar Jun 13 '14 02:06 js1972

Well currently it's a workaround because of missing functionality of the Router. I hope this gap will be closed with verson 1.24. Until then extending the router with a bit of app specific code is the cleanest solution to make up for the missing bits.

Best Regards, Tobias

ghost avatar Jun 13 '14 11:06 ghost