Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: How to Create Customized User Dialog Window/Popup
PostPosted: Sat Jan 06, 2018 11:13 am 

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

Offline
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


 Profile  
 
 Post subject: Re: How to Create Customized User Dialog Window/Popup
PostPosted: Mon Jan 08, 2018 9:15 am 

Joined: Mon Jun 11, 2012 2:10 pm
Posts: 118

Offline
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


 Profile  
 
 Post subject: Re: How to Create Customized User Dialog Window/Popup
PostPosted: Thu Apr 12, 2018 11:59 am 

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

Offline
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 393 times ]
 Profile  
 
 Post subject: Re: How to Create Customized User Dialog Window/Popup
PostPosted: Fri Apr 13, 2018 7:26 am 

Joined: Mon Jun 11, 2012 2:10 pm
Posts: 118

Offline
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:
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


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron