on 01-12-2007 3:20 AM
public static void wdDoModifyView(IPrivateFormView wdThis, IPrivateFormView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
{
//@@begin wdDoModifyView
try {
IWDClientUser user = WDClientUser.getCurrentUser();
String userinfo=user.getClientUserID();
String userinfo1=user.getFirstName();
String userinfo2=user.getLastName();
} catch (WDUMException e) {
e.printStackTrace();
}
//@@end
}
It works fine for this code, but what i need is based on the current login name i am to check the associated userrole and group it belongs to
do i able to do that ?
this code is implemented in webdynpro not portals...
when i place this code in webdynpro implementation section ,
it is a big disaster for me showing error,
i can used : request , response
IUser user=request.getUser();
Iterator roles=user.getRoles(true);
while(roles.hasNext()){
String uniqueID=roles.next().toString();
IRole userRole=UMFactory.getRoleFactory().getRole(uniqueID);
response.write("Role is:" +userRole.getDisplayName());
}catch(Exception e){
response.write("" +e);
}
where this code should implement actually.....i am a beginner...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Check the thread https://forums.sdn.sap.com/click.jspa?searchID=710430&messageID=2062457
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
26 | |
10 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.