cancel
Showing results for 
Search instead for 
Did you mean: 

sapui5 custom login page

Former Member
0 Kudos

HI: ALL


      I have a question about SAPUI5, Can you give me some advice.


     I create a proper, contains a login page and a detail page by sapui5 in Eclipse,I want to achieve When login page user name and   password and SAP user name and password are the same, just go to the next page.

     Please tell me how to do

        Best regard!

Accepted Solutions (0)

Answers (1)

Answers (1)

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Huang,

You can take a look some classes delivered by SAP.

Configuring Login Screen for Launchpad Designer - User Interface Add-On for SAP NetWeaver - SAP Libr...

/IWFND/CL_COC_SYSTEM_LOGIN     system login class

/UI2/CL_SRA_LOGIN              ICF system login class

CL_ICF_BASIC_LOGIN             ICF System Logon Basic Layout

CL_ICF_EXAMPLE01_LOGIN         Example 01 Customization System Login

CL_ICF_IDES_LOGIN              ICF System Logon IDES Layout

CL_ICF_NW04_LOGIN              ICF System Logon Layout NetWeaver 04

CL_ICF_NW07_LOGIN              ICF System Logon Basic Layout

CL_ICF_SAML_LOGIN              SAML Logon

CL_ICF_SYSTEM_LOGIN            ICF System Logon

CL_ICF_XBCML_LOGIN             ICF System Logon for XBCML

CL_MOBILE_SYSTEM_LOGIN         Logon Page for Mobile Devices

CL_OAUTH2_ICF_SYS_LOGIN        System Login class to render Token Endpoint JSON respons

CX_NWECM_LOGIN                 ECMI: Credentials Invalid Exception

IF_BADI_UC_MESSAGE_BASED_LOGIN Interface for BAdI: BADI_UC_MESSAGE_BASED_LOGIN

IF_ICF_SYSTEM_LOGIN            ICF System Logon

Regards, Masa

SAP Customer Experience Group - CEG

Former Member
0 Kudos

hi:Masayuki

Thank you for your reply

I know you said method,but now I want to achieve a  custom logon page in Eclipse by sapui5.

When the input user name and password and SAP are the same username and password to enter the next page.

can achieve it?

best regard!

masa_139
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Huang,

Did the class help you? Please elaborate what kind of detail information you need.

Regards, Masa

SAP Customer Experience Group - CEG

Former Member
0 Kudos

hi:Masayuki

    

     I created a login page in Eclipse by sapui5,

   

    I want to achieve When the input username and password and SAP username and password are     the   same  to  enter the next page.


    What method to validate the user name and password and SAP user name and password are the       same


 

   best regard!



  


former_member220538
Active Participant
0 Kudos

Hi,

Just make a call to any webservice using odatamodel.You have to mention username and password in the odatamodel.If the username and password are correct then the success function will execte.

Please refer this link

https://sapui5.netweaver.ondemand.com/sdk/#docs/api/symbols/sap.ui.model.odata.ODataModel.html

var oModel = new sap.ui.model.odata.ODataModel(url,true,user,pass);

oModel.read("/Collectionname", null, null,false,

  function(oData, response)

  {

  //Success

  }

  function(oError)

  {

  //Error

  });