For example only users in the Team Leaders group can delete cases.We use and error pop up to inform the user they need to go to the TL to delete if they need to.
Kind Regards
Simon Hall
In Vantage 8 I had this code to remove tool bar options. all of this code works except Delete. Does anyone know what the code should be now to remove the delete option from the Toolbar?
Vantage 8 code:
Sub disableTools()
if tools.Tools.Exists("FileMenu")
tools.Tools("FileMenu").SharedProps.Enabled = false
end if
if tools.Tools.Exists("EditMenu")
tools.Tools("EditMenu").SharedProps.Enabled = false
end if
if tools.Tools.Exists("ActionsMenu")
tools.Tools("ActionsMenu").SharedProps.Enabled = false
end if
if (tools.Tools.Exists("DeleteTool"))
if (tools.Toolbars.Exists("Standard Tools"))
tools.Toolbars("Standard Tools").Tools("DeleteTool").InstanceProps.Visible = Infragistics.Win.DefaultableBoolean.False
end if
end if
if (tools.Tools.Exists("NewTool"))
if (tools.Toolbars.Exists("Standard Tools"))
tools.Toolbars("Standard Tools").Tools("NewTool").InstanceProps.Visible = Infragistics.Win.DefaultableBoolean.False
end if
end if
if (tools.Tools.Exists("NewMenuTool"))
if (tools.Toolbars.Exists("Standard Tools"))
tools.Toolbars("Standard Tools").Tools("NewMenuTool").InstanceProps.Visible = Infragistics.Win.DefaultableBoolean.False
end if
end if
End Sub
On Tue, Mar 24, 2015 at 2:24 PM, amathis@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p></p><p><span>In Vantage 8 I had this code to remove tool bar options. all of this code works except Delete. Does anyone know what the code should be now to remove the delete option from the Toolbar? </span></p><p><span><br></span></p><p><span>Vantage 8 code: </span></p><p><span>Sub disableTools()</span></p><p><span>Â Â Â if tools.Tools.Exists("FileMenu")<br>Â Â Â Â Â Â Â tools.Tools("FileMenu").SharedProps.Enabled = false<br>Â Â Â end if<br>Â Â Â <br>Â Â Â if tools.Tools.Exists("EditMenu")<br>Â Â Â Â Â Â Â tools.Tools("EditMenu").SharedProps.Enabled = false<br>Â Â Â end if<br>Â Â Â <br>Â Â Â if tools.Tools.Exists("ActionsMenu")<br>Â Â Â Â Â Â Â tools.Tools("ActionsMenu").SharedProps.Enabled = false<br>Â Â Â end if<br>Â Â Â <br>Â Â Â if (tools.Tools.Exists("DeleteTool"))<br>Â Â Â Â Â Â Â if (tools.Toolbars.Exists("Standard Tools"))<br>Â Â Â Â Â Â Â Â Â Â Â tools.Toolbars("Standard Tools").Tools("DeleteTool").InstanceProps.Visible = Infragistics.Win.DefaultableBoolean.False<br>Â Â Â Â Â Â Â end if<br>Â Â Â end if<br>Â Â Â <br>Â Â Â if (tools.Tools.Exists("NewTool"))<br>Â Â Â Â Â Â Â if (tools.Toolbars.Exists("Standard Tools"))<br>Â Â Â Â Â Â Â Â Â Â Â tools.Toolbars("Standard Tools").Tools("NewTool").InstanceProps.Visible = Infragistics.Win.DefaultableBoolean.False<br>Â Â Â Â Â Â Â end if<br>Â Â Â end if<br>Â Â Â Â Â Â Â <br>Â Â Â if (tools.Tools.Exists("NewMenuTool"))<br>Â Â Â Â Â Â Â if (tools.Toolbars.Exists("Standard Tools"))<br>Â Â Â Â Â Â Â Â Â Â Â tools.Toolbars("Standard Tools").Tools("NewMenuTool").InstanceProps.Visible = Infragistics.Win.DefaultableBoolean.False<br>Â Â Â Â Â Â Â end if<br>Â Â Â end if</span></p><p><span>End Sub</span></p><p></p> </div> <div style="color:#fff;min-height:0;"></div>
Jose,
I am aware of that way, however, on this 1 form is two customizations. One I want the delete button and on the other I do not. If I do it your way it will remove it from everything. Any ideas?
Sounds like you are trying to control groups of people, have you thought about using security in general vs focusing on the button. It would be more global that way?
Joshua Giese
CIO
Direct: 920.593.8299
IT Dept: 920.437.6400 Ext. 337
Site ID: 27450-E905702A-SQL64
Wisconsin Converting, Inc.
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Tuesday, March 24, 2015 1:38 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: Removing Toolbar items like 'Delete' or 'New' in E10
Jose,
I am aware of that way, however, on this 1 form is two customizations. One I want the delete button and on the other I do not. If I do it your way it will remove it from everything. Any ideas?
On Tue, Mar 24, 2015 at 2:38 PM, amathis@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p></p><p>Jose,</p><p><br></p><p>I am aware of that way, however, on this 1 form is two customizations. One I want the delete button and on the other I do not. If I do it your way it will remove it from everything. Any ideas?<br></p><p></p> </div><span class="ygrps-yiv-1936725382"> <div style="color:#fff;min-height:0;"></div>
Jose,
Thank you sir! And Joshua this only happens on a few screens, so I'd rather just do this and not go down the rabbit hole of tweaking security. Thank you all!
On Tue, Mar 24, 2015 at 2:43 PM, amathis@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p></p><p>Jose,</p><p><br></p><p>Thank you sir! And Joshua this only happens on a few screens, so I'd rather just do this and not go down the rabbit hole of tweaking security. Thank you all!<br></p><p></p> </div><span class="ygrps-yiv-2116020067"> <div style="color:#fff;min-height:0;"></div>
On Tue, Mar 24, 2015 at 3:00 PM, amathis@... [vantage] <vantage@yahoogroups.com> wrote:Â<div> <p>They can't do file delete because I disabled that in the above code. That worked just fine, however, the delete from the keyboard is something. I will have to look into. THanks for mentioning.</p> </div><span class="ygrps-yiv-1072070871"> <div style="color:#fff;min-height:0;"></div>