Skip to main content
1-Visitor
Nov 19, 2014 8:19 AM UTC
Question

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.

11 replies

23-Emerald II
Nov 22, 2014 12:31 AM UTC

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

Translate
rl-21-VisitorAuthor
1-Visitor
Nov 24, 2014 5:54 AM UTC

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

Translate
23-Emerald II
Dec 2, 2014 12:21 AM UTC

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?

Translate
10-Marble
Dec 2, 2014 6:20 AM UTC
rl-21-VisitorAuthor
1-Visitor
Dec 2, 2014 6:57 AM UTC

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.

Translate
10-Marble
Dec 2, 2014 7:03 AM UTC

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

Translate