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

Apr 28, 2017 at 12:31 PM


avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

VIPLOVE KHUSHALANI 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.



Show 2 Share
10 |10000 characters needed characters left characters exceeded

hi viplove,

i am creating my own custom logon page. Username and password input on logon page will be sent to backend server, there if user is verified, a special token will be responed.

by the way, what is sapIDS ? my app will not depend on sap, i just use ui5 or open ui5 as front end framework.

thanks a lot



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