General configuration and customizing tasks
Configure the commands in the context menu
You can customize which menu commands are displayed in the context menu (the menu that appears when you right-click an object) so that only the menu commands relevant to your tasks appear. You can specify that the commands that appear when you right-click an object in a view housed in one perspective are different than those that appear when you click the same type of object in a different perspective. This allows you to tailor the user interface to different workflows and user needs.
You must have DBA privileges to complete this task.
| Context menu — before suppression | Context menu — after suppression |
|---|---|
Procedure
- Display the required menu command by adding the following extension to the plugin.xml file located in portal\plugins\com.teamcenter.siemens.lookandfeel_10000.1.0:Copy`
`
Note To activate the command you may need to register your client by double clicking on genregxml under ..\Teamcenter Root\portal\registry. Without this the command will not be visible.
- Choose Window→Suppress Context Menus.
Note This command may be hidden in your installation. Your administration can display it.
Teamcenter displays the Save dialog box where you can create an XML file that stores the suppression data or select an existing XML file that you want to modify.
- Type the name of a new file or select an existing file to modify and click Save.
Teamcenter displays the Suppress Context Menus dialog box. This dialog box allows you to specify the type of object for which the context menu is customized. Additionally, you select the view, perspective, and application in which this customization is visible.
- Select the application, perspective, view, and type of selected object for which you want to limit the context menu commands.
You can select any of the Open With commands to suppress entries in the Open With context menu. You can also suppress context menus in customized Manufacturing Process Planner perspectives.
Add the commands by typing their names in the Commands dialog box, selecting them from the commands list, and adding them to the list on the right with the arrow.
Click OK.
Teamcenter saves the results in the XML file.
- Make the configured menu available to different groups, roles, or users as follows:
Save the XML file from the previous step to a Context Menu Suppression dataset.
Add the name of the dataset to the TC_ContextMenuSuppression preference and publish this preference to the required group, role or user.
Related Topics
- Provided rich client customization examples
Source: https://docs.sw.siemens.com/en-US/doc/282219420/PL20251212545240207.plm00260/xid833735 · retrieved 2026-07-11