cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member340030
Contributor
0 Kudos

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.

Thanks

Viplove

0 Kudos

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

Leon

former_member340030
Contributor
0 Kudos

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.

thanks

Viplove