Removing a Standard Product Function
- Last UpdatedJan 28, 2025
- 1 minute read
There are various ways of removing a function from the product depending on the end users objective for removing it. The options are:
-
Leave the button visible and active, and replace the command object as described above with one that outputs a message to say that the function is not available.
-
Make the button visible but inactive.
-
Make the button invisible.
-
Remove button from the UIC file.
To make the button visible but inactive the enabled method on a command object can be used, for example, !!aCommand.enabled(false). This can be called at any time after a command is loaded and registered.
To make the button invisible the visible method on a command object can be used, for example, !!aCommand.visible(false). This can be called at any time after a command is loaded and registered.
Another way to make a button invisible is to remove it from the UIC file by using the customization tool. A button can be removed from all groups where it is shown, and the definition of the button can be removed. This requires a UIC path to be defined (refer to .NET Customization.), and a copy made of any UIC files defining groups containing the button. This is not a recommended way of working unless there is a requirement to prevent users from reactivating the button by using visible and enabled command methods.