BW----List of logged on users in the Portal
2007-05-22 17:06
423 查看
Description : This code snippet gives the list of logged on users in the portal using Webdynpro for JAVA
Required jar files for this code snippet
-> webdynpro_services.jar located at <plugins folder>/com.sap.tc.webdynpro.runtime/lib
-> com.sap.security.api.jar located at <plugins folder>/com.sap.security/lib
import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
IWDClientUser currentUsers[] = WDClientUser.getClientUsers();
//Displaying the count of logged on users
wdComponentAPI.getMessageManager().reportSuccess("Number of logged on Users in the portal"+currentUsers.length);
for(int i = 0; i < currentUsers.length; i++)
{
if(currentUsers[i].getSAPUser() != null)
{
//Displaying the logged on users;
wdComponentAPI.getMessageManager().reportSuccess("User - "+currentUsers[i].getSAPUser().getUniqueName());
}
}
Note: I used reportSuccess statement to show the output, instead you can bind the list of users to a node and show in the Table
Required jar files for this code snippet
-> webdynpro_services.jar located at <plugins folder>/com.sap.tc.webdynpro.runtime/lib
-> com.sap.security.api.jar located at <plugins folder>/com.sap.security/lib
import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
IWDClientUser currentUsers[] = WDClientUser.getClientUsers();
//Displaying the count of logged on users
wdComponentAPI.getMessageManager().reportSuccess("Number of logged on Users in the portal"+currentUsers.length);
for(int i = 0; i < currentUsers.length; i++)
{
if(currentUsers[i].getSAPUser() != null)
{
//Displaying the logged on users;
wdComponentAPI.getMessageManager().reportSuccess("User - "+currentUsers[i].getSAPUser().getUniqueName());
}
}
Note: I used reportSuccess statement to show the output, instead you can bind the list of users to a node and show in the Table
相关文章推荐
- BW----List of logged on users in the Portal
- BW----List of logged on users in the Portal
- BW----List of logged on users in the Portal
- BW----List of logged on users in the Portal
- add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
- query specified join fetching, but the owner of the fetched association was not present in the select list
- Android3.0 上的磁盘加密 Notes on the implementation of encryption in Android 3.0
- How You Can Cash In On The Green Gold Rush of 2014
- 解决NDK *** note: the mangling of 'va_list' has changed in GCC 4.4
- #372 Delete Node in the Middle of Singly Linked List
- Ch2-5: find the beginning of loop in a circular linked list---two solutions
- Tips on how to Fix People Problems Appearing in the Business of Mining Machinery?
- sorting data based on the value in second column of a file
- TypeError: view must be a callable or a list/tuple in the case of include()
- 第一次外国人在qq上找我聊天【为了找php程序员】The first time of foreigners in qq chat on me.
- add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
- 阅读列表:On the Surprising Behavior of Distance Metrics in High Dimensional Space
- LintCode Delete Node in the Middle of Singly Linked List 在O(1)时间复杂度删除链表节点
- Good Explain on Sleep in Kernel, let me understanding the mechanism of avoiding "missing wake"
- sharepoint2010:The number of items in this list exceeds the list view threshold, which is 20000 items.