Hi, I have a script that disables the security level on a document profile:CONST nrDefaultSecurity=17Sub EditProfileDlg_OnInitDialog(dlg) 'MsgBox "Edit ProfileDlg Fire OnInitDialog" 'Code to set default security to public and readonly dlg.SetAttributeValueByID nrDefaultSecurity, imPublic, FalseEnd Subis it possible to disable the button to modify who has access to that document as well?thanks!
Sub EditProfileDlg_OnInitDialog(dlg) dim usrGrpSecDlg set usrGrpSecDlg = dlg.UsrGrpSecurityDlg usrGrpSecDlg.ViewMode = TrueEnd Sub
The code worked great, thanks...now the one issue I have is with my code below, it's not only graying out the security level but it's also defaulting it to private. which string needs to change for it to default to public?CONST nrDefaultSecurity=17Sub NewProfileDlg_OnInitDialog(dlg) 'MsgBox "New ProfileDlg Fire OnInitDialog" 'Code to set default security to public and readonly dlg.SetAttributeValueByID nrDefaultSecurity, imView, False dim usrGrpSecDlg set usrGrpSecDlg = dlg.UsrGrpSecurityDlg usrGrpSecDlg.ViewMode = TrueEnd Sub