Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2812

SAP UI5 validation of logon credentials

$
0
0

Hi,

 

I need to validate the logon credentials when user clicks the login button. If credentials are valid, we need to

route it to the next view/page.

 

I'm consuming the ODATA service using the below syntax.

 

var userID          = oTextField1.getValue();

var password     = oTextField2.getValue();

 

var oModel = new sap.ui.model.odata.oDataModel("URI", false, userID, password);

 

Now I need to capture the error and success message after creation of model. Can anyone tell me the syntax?

 

Regards

Nidhi


Viewing all articles
Browse latest Browse all 2812

Trending Articles