Skip to main content
1-Visitor
November 19, 2014
Question

How to add custom action in Product Structure Browser?

  • November 19, 2014
  • 11 replies
  • 5352 views

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.

11 replies

23-Emerald II
November 22, 2014

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

rl-21-VisitorAuthor
1-Visitor
November 24, 2014

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

23-Emerald II
December 2, 2014

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?

10-Marble
December 2, 2014
rl-21-VisitorAuthor
1-Visitor
December 2, 2014

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.

10-Marble
December 2, 2014

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" %>