Skip to main content
12-Amethyst
December 10, 2024
Solved

Windchill Library Main Screen

  • December 10, 2024
  • 1 reply
  • 1247 views

How can I add the problem report type found in the Windchill Action > New > New Problem Report menu as a shortcut to the Windchill library main screen?

Best answer by avillanueva

If you are familiar with adding custom actions in the custom-actionsModels.xml, that is where I would start. You'll need to copy and add to the "folderbrowser_toolbar_actions" section. I have a snipet below:

<model name="folderbrowser_toolbar_actions">
 <description>Folder browser toolbar actions menu for all Folders.</description>
 <submodel name="folderbrowser_toolbar_open_submenu" />
 <action name="customLaunchMatrixEditorWizard" type="productfamily"/> 

 <action name="separator" type="separator" />
 <submodel name="folderbrowser_toolbar_new_submenu" />
 <action name="separator" type="separator" /> 
 <action name="list_cut" type="object" /> <!-- Cut -->
 <action name="list_copy" type="object" shortcut="true" /> <!-- Copy -->

and I added some custom ones to that list:

<action name="list_deleteRepOnly" type="customization" shortcut="true" resourceBundle="com.ptc.wvs.util.ActionDefinitionsRB" /> <!-- RepDelete -->
	 <action name="list_createRep" type="customization" shortcut="true" resourceBundle="com.ptc.wvs.util.ActionDefinitionsRB" />
	 <action name="list_createRepEPM_WC" type="customization" shortcut="true" resourceBundle="com.ptc.wvs.util.ActionDefinitionsRB" />

Now, these show up in my actions list but also I see them in my toolbar. The thing I do not know about is why some do and some don't. Someone else can respond to that. 

avillanueva_0-1733837982986.png

 

1 reply

avillanueva
23-Emerald I
23-Emerald I
December 10, 2024

If you are familiar with adding custom actions in the custom-actionsModels.xml, that is where I would start. You'll need to copy and add to the "folderbrowser_toolbar_actions" section. I have a snipet below:

<model name="folderbrowser_toolbar_actions">
 <description>Folder browser toolbar actions menu for all Folders.</description>
 <submodel name="folderbrowser_toolbar_open_submenu" />
 <action name="customLaunchMatrixEditorWizard" type="productfamily"/> 

 <action name="separator" type="separator" />
 <submodel name="folderbrowser_toolbar_new_submenu" />
 <action name="separator" type="separator" /> 
 <action name="list_cut" type="object" /> <!-- Cut -->
 <action name="list_copy" type="object" shortcut="true" /> <!-- Copy -->

and I added some custom ones to that list:

<action name="list_deleteRepOnly" type="customization" shortcut="true" resourceBundle="com.ptc.wvs.util.ActionDefinitionsRB" /> <!-- RepDelete -->
	 <action name="list_createRep" type="customization" shortcut="true" resourceBundle="com.ptc.wvs.util.ActionDefinitionsRB" />
	 <action name="list_createRepEPM_WC" type="customization" shortcut="true" resourceBundle="com.ptc.wvs.util.ActionDefinitionsRB" />

Now, these show up in my actions list but also I see them in my toolbar. The thing I do not know about is why some do and some don't. Someone else can respond to that. 

avillanueva_0-1733837982986.png

 

HelesicPetr
22-Sapphire II
22-Sapphire II
December 11, 2024

Hi @avillanueva 

The point is that the definition in the XML has a very important attribute shortcut="true"

if you set the shortcut to true, then it is shown in the table ribbon menu.

HelesicPetr_0-1733905766053.png

PetrH

avillanueva
23-Emerald I
23-Emerald I
December 11, 2024

Thanks Peter for my TIL. With that, you'll need to copy "folderbrowser_toolbar_new_submenu" from FolderManagement-actionModels.xml and add that shortcut=true for Problem Reports

<action name="create" type="changeRequest" shortcut="true" /> <!-- New Change Request -->
<action name="create" type="problemReport" shortcut="true" /> <!-- New Problem Report -->