Hi,
I want to query 'Department' from user profile in an html page of a livelink module. Just want to store in a variable. How can I do that?
Best regards, Baber.
Hi Baber,
If I have understood it correctly, you want to know the Department/GroupName in code level, then you display to user.
GetUserByID() function gives more detailed information about a user.
Code Ex:
String Dept
RecArray Upi
List GroupNames
String DeptName
Dynamic DNames
UAPISESSION USess = .fPrgCtx.uSession().fSession
Upi = UAPI.GetUserByID(USess,2163592) // Enter UAPI ID or You can use CAPI.UserInfo function to get loged in user details
GroupNames = RecArray.ColumnToList(Upi, "GROUPNAME")
for DNames in GroupNames
DeptName = Str. Format( "%1", DNames )
end
Hope this helps..
Regards,
Kingsley