The Command_HideAndDisable procedure is used to hide and disable a command. This is the preferred method of hiding and disabling a command for an integration.
• command – The command to be hidden and disabled.
By using a common procedure for hiding and disabling commands, Microsoft Dynamics GP can control what action is performed for the command. For example, Microsoft Dynamics GP can choose to display the commands, but leave them in the disabled state so they cannot be used. This can be useful so that all commands can be seen.
Use the Command_HideAndDisable procedure after you have checked any security settings for your integration, typically in the form pre script of your integration’s command form. If access should not be granted to the commands in your integration, use this procedure to hide and disable them.