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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 28, 2017 at 12:39 PM

    Hi Leon ,

    Are you using sapIDS logon page or your own custom logon page ?? ...If custom than how you are authenticating the user are you using you custom system not IDS ??

    Please provide these details .. if its standard IDS .. than it will automatically leads you to the logon page if you are not logged in.



    Add comment
    10|10000 characters needed characters exceeded

    • Hi Leon ,

      By reading your reply , i think you are not hosting your application on cloud so than SAP IDS doesn't come into picture. but where ever you are hosting like on SAP gateway .. than it will be acting as service from SAP gateway which needs to be authenticated from SAP gateway user name and password .. it's not good you to authenticate manually inside the app.



Skip to Content