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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

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

vostapenko
12-Amethyst

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
Announcements


Top Tags