cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add custom action in Product Structure Browser?

Highlighted
Newbie

How to add custom action in Product Structure Browser?

Hi,

I am unable to add custom actions in Product Structure Explorer (Windchill 10.2). I do not see any error in Method Server as well.

I could not find this information in PTC Customization document.

Can any one help in this regard.

Thanks in advance.

Tags (3)
11 REPLIES 11

Re: How to add custom action in Product Structure Browser?

What kind of action are you trying to add and to where in the PSE? Individual row action? Menu bar?

Re: How to add custom action in Product Structure Browser?

Hi,

Thanks for your comment.

I am tring to add an action to the context menu (the menu that appears after right click of part in PSE) like as shown in the image below.

Is this possible? if not what are the other possible ways of performing an customization in PSE to have our own custom action?

Capture.PNG

Re: How to add custom action in Product Structure Browser?

Have you taken a look at the "Customizing PSE Menus, Toolbars and Popup Menus" topic in

http://support.ptc.com/WCMS/files/138974/en/WCExplorersCust.pdf?

Re: How to add custom action in Product Structure Browser?

Hi,

If you need information about PSB, then i was able to add "Move" action

to RMB menu in PSB with the help of these articles:

1.

http://www.ptc.com/cs/help/windchill_hc/wc101_hc/index.jspx?id=WCCG_BusLogicCust_ReportGeneration_Re...

2.

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS160511&posno=1&q=customActionGWT&nav=&sou...

Regards,

Vytautas

Re: How to add custom action in Product Structure Browser?

This document describes the customization procedure for Product Structure Explorer and not for Product Stucture Browser . Do you have any other suggetions please?

Re: How to add custom action in Product Structure Browser?

Hi Vytautas,

Thanks for your reply.

The articales you have shared talks about Report Customization in PSB, If i understand from your comments, You want me to make use this LaunchURLAction class to call my own custom class in the JSP?

Please let me know if my understanding is correct.

Thanks once again.

Re: How to add custom action in Product Structure Browser?

It depends on your action, what is the purpose of your action...

In my case, i needed to add Move action so I build custom URL and redirected with javascript:

My jsp, which I'm calling from RMB menu looks like this:

<%@ include file="/netmarkets/jsp/util/begin.jspf" %>

<%
String prURL = ext.psb.ContainerMoveAction.URL(commandBean);
%>

<script>
window.location.href = '<%=prURL%>';
</script>

<%@ include file="/netmarkets/jsp/util/end.jspf" %>

Re: How to add custom action in Product Structure Browser?

Hi Vytautas,

The following is my need/requirement.

I would like to add several custom actions on to the PSB like Approve, Reject ... etc.

For ex: When i click on Approve the Part has to be Approved by assigning the status as Approved along with its 2D and 3D drawings.

Do you have any suggestions or solutions for this please?

Thanks once again.

Re: How to add custom action in Product Structure Browser?

So you don't need any UI window, so I think is quite easy.

So you will call JSP from RMB action and java method from JSP and with commandbean as java method parameter you will have all information what is selected.