How to Create Customized User Dialog Window/Popup

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
Mishra Krishnakumar
Posts: 5
Joined: Wed Oct 07, 2015 2:18 am

How to Create Customized User Dialog Window/Popup

Post 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

AMitchneck
Posts: 137
Joined: Mon Jun 11, 2012 2:10 pm

Re: How to Create Customized User Dialog Window/Popup

Post 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.
Adam M.
Controls Engineer
FlexEnergy

Mishra Krishnakumar
Posts: 5
Joined: Wed Oct 07, 2015 2:18 am

Re: How to Create Customized User Dialog Window/Popup

Post 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
Attachments
User Dialog.PNG
User Dialog.PNG (13.95 KiB) Viewed 6438 times

AMitchneck
Posts: 137
Joined: Mon Jun 11, 2012 2:10 pm

Re: How to Create Customized User Dialog Window/Popup

Post 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;
}
Adam M.
Controls Engineer
FlexEnergy

Post Reply