Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
User Group lookup
garymccl
Hi - just looking for some advice on a WorkSite dialog for users and groups.
The requirements are that the users are asked to select a list of users and groups and click OK or Cancel.
I have started this by using UsrGrpSecurityDlgClass. The dialog is already populated and displays fine, it has everything I need except for one thing; the OK button is greyed out until a user makes a change.
This make the dialog unusable for me, because I am simply asking the user to verify or change the list, but not making the change is fine, and the user should be able to click on OK.
My current code is as follows:
/*************************************************
UsrGrpSecurityDlg dlg = new UsrGrpSecurityDlgClass();
dlg.NRTDatabase = (NRTDatabase)[WorkSiteDatabase];
dlg.EnableExternal = false;
dlg.UserNameArray = usernames;
dlg.UserAccessRightsArray = usrrights;
dlg.GroupNameArray = grpnames;
dlg.GroupAccessRightsArray = grprights;
dlg.Caption = "Is this correct?";
//allows user to change security in the dialog
dlg.ViewMode = false;
dlg.OnOK += new _IUsrGrpSecurityDlgEvents_OnOKEventHandler(dlg_OnOK);
dlg.OnCancel += new _IUsrGrpSecurityDlgEvents_OnCancelEventHandler(dlg_OnCancel);
dlg.Show(0);
/*************************************************
If there is another property/context item I should be using, I would appreciate some advice! I have looked myself and so far, I can't find any!
Thanks!
Gary
Find more posts tagged with
Comments
There are no comments yet