How To add new Action to a Menu in Windchill 10.1
Hello all,
I need to link a new Action in Action Menu of a Product..
How i can achive this.
Please Check the Image of Required Outcome.

Please tell me the exact way..
Thanks,
Vivek
Hello all,
I need to link a new Action in Action Menu of a Product..
How i can achive this.
Please Check the Image of Required Outcome.

Please tell me the exact way..
Thanks,
Vivek
Hi Vivek,
You can try below. This instructions for Note (subtype of EPMDocument) Object type, but instructions are same for other type too.
1. The RMB menu for Note object uses “epmdocuments details page actions” model from <WT_HOME>\codebase\config\actions\UwgmCadx-actionmodels.xml file
2. Copy this entire model to <WT_HOME>\codebase\config\actions\custom-actionModels.xml file
3. You can add you custom action details in the same model as shown below:
<model name="epmdocuments details page actions" menufor="wt.epm.EPMDocument">
.
.
.
<action name="inflateNotes" type="customInflateNoteActions" resourceBundle="ext.TEST.ActionDefinitionsRB"/> <!-- Custom Action in Objects Action Drop Down List -->
.
</model>
4. In the <WT_HOME>\codebase\config\actions\custom-actions.xml file add objecttype for above action. I below will goes to this file:
<objecttype name="customInflateNoteActions" class="wt.epm.EPMDocument|com.ptc.ptcnet.DynamicDocument|com.ptc.ptcnet.Note" resourceBundle="ext.TEST.ActionDefinitionsRB" >
<action name="inflateNotes" uicomponent="" ajax="component">
<description>Create a Inflate Note</description>
<command class="" method="execute" windowType="popup" url="netmarkets/jsp/ext/custom/InflateNotes/inflateNotes.jsp" />
</action>
</objecttype>
5. Place your inflateNotes.jsp file under <WT_HOME>\codebase\netmarkets\jsp\ext\custom\InflateNotes directory
6. Create a Resource file ActionDefinitionsRB under <WT_HOME>\src\ext\TEST directory which renders Labelling for your custom action
7. Compile this Resource file ActionDefinitionsRB with below command from Windchill Shell: (Do not copy paste above command in Windchill Shell)
tools class -Dclass.includes=ext\TEST\**
8. Make sure BUILD SUCCESSFUL and ActionDefinitionsRB.class file is created under <WT_HOME>\codebase\ext\TEST directory
9. Stop Windchill Method Server
10. Clear Tomcat, Info*Engine cache
11. Restart Windchill Method Server

Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.