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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Add to Workspace from ECN task--resulting items section

kirk.wemple
1-Newbie

Add to Workspace from ECN task--resulting items section

Has anyone customized the ECN task page to include an Add to Workspace icon so that all objects in a ECN task can be easily added to a workspace? We are using Windchill 9.1 M030.

--Kirk Wemple

2 REPLIES 2

I have tried to do this. I didn?t have any success, but I?ll post what I
did, maybe somebody can point out where I went wrong. I didn?t spend a lot
of time investigating why it didn?t work.



<loadpoint>\ codebase \config\actions\ChangeManagement-actionModels.xml



You do not edit this file directly. Instead you find the entries that you
want to modify and you put it in to the custom-actions.xml file in the same
directory. Then you can add icons (actions) to that file.



Here is the snippet that you?ll look at





<model name="changeTask.resultingItems.table.create_edit">

<action name="list_copy" type="object"/">

<action name="changePaste" type="change"/">

<action name="changePasteSelect" type="change"/">

<action name="remove" type="object"/">

<action name="collectItems_ResultingItems" type="changeTask"/">

<action name="setEffectivity" type="effectivity"/">

<action name="viewEffectivity" type="effectivity"/">

<action name="separator" type="separator"/">

<action name="addResultingItems" type="changeTask"/">

</model>





<model name="changeTask.resultingItems.table.view">

<action name="list_copy" type="object"/">

<action name="setEffectivity" type="effectivity"/">

<action name="viewEffectivity" type="effectivity"/">

<action name="separator" type="separator"/">

<action name="edit" type="changeTask"/">

</model>



Next you need to figure out what action you need to include.



<model name="changeTask.resultingItems.table.view">

<action name="list_copy" type="object"/">

<action name="setEffectivity" type="effectivity"/">

<action name="viewEffectivity" type="effectivity"/">

<action name="WFMULTICHECKOUT" type="folder"/">

<action name="WFADDTOWORKSPACE" type="folder"/">

<action name="separator" type="separator"/">

<action name="edit" type="changeTask"/">

</model>



I found the two entries on the search-actionmodels.xml, but it didn?t show
up after reloading the actions using the command:

Ø windchill com.ptc.netmarkets.util.misc.NmActionServiceHelper

or after restarting.



Under NetMarktes-actions.xml you?ll find both actions defined

<action name="WFADDTOWORKSPACE" multiselect="true" rendertype="PDM"&lt;br"/>selectRequired="true">

<command windowtype="popup" class="java.lang.Object"&lt;br"/>method="WFADDTOWORKSPACE" onClick="validateAddToWorkspaceSelection(event)"/>

<includefilter name="projectM4D"/>

</action>



I?m assuming I?m missing something ?simple? but not sure what? Hopefully
somebody recognizes what I missed.



Thanks,
Steve D.






So after logging a call with Tech Support to see why my customization didn't show the action this was the response is below. I would recommend that others log an enhancement request on this as well.

Hi Steve,

Appreciate your patience on this.

As per R&D this action first needs to be enabled from DownloadActionDelegate.java class.

As this class is currently unsupported and PTC TS does not support this kind of customization currently there is no way to add "Add to Workspace" action for resulting objects table.

I would request you to file enhancement request so that product management may consider this in future release of windchill.

I will go ahead and mark this call as resolved, please feel free to reply if you have any concerns.

Regards,

Dhananjay

Announcements

Top Tags