on 12-11-2007 1:58 PM
Hi All,
I am creating a webdynpro report for displaying KM documents and hitscount. In that i want to capture the UserId's from portal and display it. How can i capture it? Is there any code samples for that?
Regards,
Divya
answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
do you mean the document centric properties such as Created By, LastModifiedBy?
regards,
Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Divya,
Use this method,
public java.lang.String getUserName( )
{
//@@begin getUserName()
//Getting the user name
String userName = "";
IWDClientUser wdUser = null;
try
{
wdUser = WDClientUser.getCurrentUser();
}
catch (WDUMException e)
{
wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), false);
}
IUser usernam = wdUser.getSAPUser();
userName = usernam.getUniqueName();
return userName;
//@@end
}
and add the jar <b>com.sap.security.api</b>. Get back if there are any issues.
regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.