Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

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

$
0
0

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.


Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>