on 05-28-2014 10:50 AM
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!
Hi Huang,
You can take a look some classes delivered by SAP.
/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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
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
});
User | Count |
---|---|
81 | |
10 | |
10 | |
8 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.