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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

How to add a button to workspace toolbar, that activate custom Wizard(like Create_Wtpart)?

vostapenko
8-Gravel

How to add a button to workspace toolbar, that activate custom Wizard(like Create_Wtpart)?

In <Windchill>\site.xconf

<Service context="default" name="wt.enterprise.ActionDelegate" targetFile="codebase/com/ptc/windchill/uwgm/cadx.properties">

<Option requestor="java.lang.Object" cardinality="duplicate" serviceClass="ext.tpolis.actions.CustNewPartActionDelegate" selector="CUST_NEWPART_JCA"/>

</Service>

<Service context="default" name="wt.enterprise.URLActionDelegate" targetFile="codebase/com/ptc/windchill/uwgm/cadx.properties">

<Option requestor="java.lang.Object" cardinality="duplicate" serviceClass="ext.tpolis.actions.CustNewPartActionDelegate" selector="CUST_NEWPART_JCA"/>

</Service>

<Service context="default" name="wt.fc.IconDelegate" targetFile="codebase/com/ptc/windchill/uwgm/cadx.properties">

<Option requestor="wt.fc.WTObject" cardinality="duplicate" serviceClass="wt.fc.ActionIconDelegate" selector="CUST_NEWPART_JCA"/>

</Service>

<Service context="default" name="wt.fc.ActionIconDelegate" targetFile="codebase/com/ptc/windchill/uwgm/cadx.properties">

<Option requestor="wt.fc.WTObject" serviceClass="ext.tpolis.images.cust_import.gif" selector="CUST_NEWPART_JCA"/>

</Service>

In <Windchill>\codebase\config\actions\custom-actions.xml

<objecttype name="part" class="wt.part.WTPart">

<action name="createPartFromWorkspaceCust" ajax="page" resourceBundle="ext.kontekst.kplus2wnc.actions.kplus2wncActionsResource">

<command class="com.ptc.windchill.enterprise.part.forms.CreatePartAndCADDocFormProcessorCust" method="execute" windowType="popup" url="/netmarkets/jsp/part/importPartWizardCust.jsp"/>

</action>

</objecttype>

In <Windchill>/netmarkets/jsp/part/importPartWizardCust.jsp

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

Test

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

Button is show in toolbar Workspace. But not work action, not start wizard.

0 REPLIES 0
Top Tags