Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.
Hi Freinds,
How to display the all users of the Windchill (Means All user names).Can you suggest any api ?
Regards,
Sandeep
Solved! Go to Solution.
List<WTUser> resultList = new java.util.LinkedList();
QuerySpec querySpec = new QuerySpec(WTUser.class);
QueryResult queryResult = PersistenceHelper.manager.find(querySpec);
while (queryResult.hasMoreElements())
{
resultList.add((WTUser) queryResult.nextElement());
}
List<WTUser> resultList = new java.util.LinkedList();
QuerySpec querySpec = new QuerySpec(WTUser.class);
QueryResult queryResult = PersistenceHelper.manager.find(querySpec);
while (queryResult.hasMoreElements())
{
resultList.add((WTUser) queryResult.nextElement());
}
Hi,
Yes i done same thing,Will it dispaly all usernames ?i was login windchill by using wcadmin username ,but it is not dispalying the wcadmin
QuerySpec qSpec =
new QuerySpec(WTUser.class);QueryResult qrMasters = PersistenceHelper.
manager.find(qSpec);while(qrMasters.hasMoreElements()){
WTUser userName=(WTUser)qrMasters.nextElement();
System.
out.println(userName.getName());}
for the above code the out put is
demo
adminstartor
getuser
My doubt is why wcadmin is not displayed but i was connect to the windchill by using wcadmin username can u explain ?
Regards
Sandeep
adminstartor is wcadmin
Hi
Ok tahnk you
Regards,
Sandeep
Hi,
How to get the owner user of the exsiting part ?
Regards,
Sandeep