Skip to Content
avatar image
Former Member

how to validate login values and navigate to another view in sapui5 mobile application

Hi Experts,

I am a crm consultant recently i shifted to ui5 project and i'm new to sapui5 development i got a requirement in which i need to develop a mobile application based on user log in i have to display user details.

i have designed a log in page based on java script view.

view is looking like this..

when i click on log in button i have given alert.

my question is how can i adjust the log in page like this..

and instead of alert how can i validate the user name and password using oData concept and then navigate to details view (page2).

if you don't mine please provide the step by step procedure how to achieve this.

this is my view.js code

Thanks & Regards,

Srinivas.

mobileapp.JPG (15.3 kB)
loginpad.JPG (8.4 kB)
viewjs.JPG (29.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 08, 2015 at 04:01 PM

    Completing the tutorial will help you achieve your goals in regards to this project:

    https://sapui5.netweaver.ondemand.com/sdk/#docs/guide/5ca68e6e62e6464a8103297fbc19cd9c.html

    To validate the login information, you'll need to create a sap.ui.model.odata.ODataModel. This object must contain the correct URL. There is success callback that you can use to navigate to the next page if login information are correct.

    The navigation to another page is done by using the Routing mechanism. At first glance, it might look a bit complex but this the best method to navigate between pages.

    https://sapui5.netweaver.ondemand.com/sdk/#docs/guide/688f36bd758e4ce2b4e682eef4dc794e.html

    Good luck with your project!

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 08, 2015 at 03:37 PM

    First of all I would recommend to read the existing basic guides of sapui5.

    Also please study the existing controls including the different layouts.

    After that, use the search function please, this space has a lot informations according to your requirements and more.

    Add comment
    10|10000 characters needed characters exceeded