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
How to Create Customized User Dialog Window/Popup
-
- Posts: 5
- Joined: Wed Oct 07, 2015 2:18 am
-
- Posts: 137
- Joined: Mon Jun 11, 2012 2:10 pm
Re: How to Create Customized User Dialog Window/Popup
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
Controls Engineer
FlexEnergy
-
- Posts: 5
- Joined: Wed Oct 07, 2015 2:18 am
Re: How to Create Customized User Dialog Window/Popup
I was asking for the other User Dialog, not the Login Screen.
Please refer the attached image for clarification.
Thanks,
Mishra Krishnakumar
Please refer the attached image for clarification.
Thanks,
Mishra Krishnakumar
- Attachments
-
- User Dialog.PNG (13.95 KiB) Viewed 8410 times
-
- Posts: 137
- Joined: Mon Jun 11, 2012 2:10 pm
Re: How to Create Customized User Dialog Window/Popup
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:
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
Controls Engineer
FlexEnergy