Page 1 of 1

How to Create Customized User Dialog Window/Popup

Posted: Sat Jan 06, 2018 11:13 am
by Mishra Krishnakumar
Dear All,

Currently I am working on a project in which I require a Customized User Dialog..I searched for that in Forum but didn't got any solution..So I would request you all to pls guide me regarding this Asap..

Thanks,

Krishnakumar Mishra

Re: How to Create Customized User Dialog Window/Popup

Posted: Mon Jan 08, 2018 9:15 am
by AMitchneck
You can create a new screen and under general settings check Popup to convert the screen to a dialog. Leave Modal checked if you want to require the user to respond to the dialog before they can do anything else. Unchecking Modal will make the dialog more like a tool window. Once you sent the screen as a popup you can move and size its appearance on the screen.

Re: How to Create Customized User Dialog Window/Popup

Posted: Thu Apr 12, 2018 11:59 am
by Mishra Krishnakumar
I was asking for the other User Dialog, not the Login Screen.
Please refer the attached image for clarification.

Thanks,

Mishra Krishnakumar

Re: How to Create Customized User Dialog Window/Popup

Posted: Fri Apr 13, 2018 7:26 am
by AMitchneck
Mishra,

What customization are you trying to do with this dialog? In my last response I indicated how to create custom dialogs in general.

You can access user information through the Globals.Security object. For example, the following code checks if logged in user is in a specific group:

Code: Select all

public bool hasAccess(string reqGroup)
{
	string curUser = Globals.Security.CurrentUser;
	if (string.IsNullOrEmpty(curUser)) return false;
	
	foreach (ISecurityUser user in Globals.Security.Users)
	{
		if (user.Username == curUser)
		{
			foreach (ISecurityGroup sgroup in user.SecurityGroups)
			{
				if (sgroup.GroupName == reqGroup) return true;
			}
			return false;
		}
	}
	return false;
}