Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
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?
Solved! Go to Solution.
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.
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.
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.
PetrH
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 -->
thank you for your support 🙂