Create Abstarct Portal Component and write code in doint() method
try
{
IUserFactory
userfactory =
UMFactory.getUserFactory();
IUserSearchFilter
userfltr = userfactory.getUserSearchFilter();
ISearchResult
userResult = userfactory.searchUsers(userfltr);
while
(userResult.hasNext())
{
response.write("<table border = 0 >\n");
String
uniqueid = (String) userResult.next();
IUser
user = userfactory.getUser(uniqueid);
*********************************** if you are using WebDynpro Java use this code
ele = wdContext.nodeEmpDetails().createEmpDetailsElement();
wdContext.nodeEmpDetails().addElement(ele);
ele.setEmpID(
user.getUniqueName());
ele.setDisplyName(
user.getDisplayName());
ele.setEmailID(
user.getEmail());
***********************************
response.write("<tr><td>"+user.getUniqueName()+"</td>\n");
response.write("<td>"+user.getDisplayName()+"</td>\n");
response.write("<td>"+user.getEmail()+"</td></tr>\n");
response.write("<table>/n");
response.write("\n");
}
}
catch
(Exception e)
{
**********************************
wdComponentAPI.getMessageManager().reportException("Exception Caught: "+e, false);
**********************************
System.out.println("Exception
Caught: "+e);
}
Thanks for sharing this Informative content. Well explained. Got to learn new things from your Blog
ReplyDelete.SAP MM training in chennai
Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it's nice to find a website that details so much information about different artists. тренинги в Украине
ReplyDelete