Hi,
I need to get current logged in user group and need to populate that user group in all over the forms by placing the label or link.
i am able to get the user group with following code. please correct the following code also suggest how do i populate group, when ever user access the form i need to place link or label on each form and that will populate the current user group.
public static client void main(Args _args)
{
UserGroupList groups;
UserInfo userInfo;
select * from userInfo where userInfo.id == curuserid();
info(strfmt("You have login by this %1 user id and alias name is %2",curuserid(),userInfo.networkAlias));
info("You belong to following user groups");
while select groups where groups.userId == curuserid()
{
info(groups.groupId);
info(curuserid());
}
//info(curuserid());
}
Please Help ASAP
*This post is locked for comments
I have the same question (0)