on 08-25-2008 1:12 PM
Hi All,
How to get User Name , Passward in to pcd using Webdynpro PCD JSPDYNAPAGES , please .
Thanks & Regards,
Suresh
Please check the code,
To get the user Name
try {
IUser user = WDClientUser.getCurrentUser().getSAPUser();
String userName = user.getUniqueName().toUpperCase();
}
catch(WDUMException e){
}
To check the password -
I dont think we can get the password from portal but you can validate your password with the string.
IUserAccount mu = UMFactory.getUserAccountFactory().getUserAccountByLogonId(wdContext.currentContextElement().getUserName());
IUserAccount mua = UMFactory.getUserAccountFactory().getMutableUserAccount(mu.getUniqueID());
String oldPwd = "welcome123";
if(mua.checkPassword(oldPwd) {
// PASSWORD IS SAME
}
Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.