Skip to Content
Apr 28, 2017 at 12:31 PM

is it possible to navtigate o another view when init first view in sap ui5?


hi experts,

here is my case, i create a app with ui5. before user open view1, i check if the user has logoned, if not, i will open logon view instead.

view 1:

sap.ui.controller("elearning_ui5.controller.Tile", { _oToken: null , onInit: function() { // init router var oRouter = sap.ui.core.UIComponent.getRouterFor(this); if (!this._oToken) { oRouter.navTo("logon"); } },

but it doesn't work.

can anyone give some hint?

how to handle logon page?