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

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

Translate the entire conversation x

Windchill Library Main Screen

fatihsimsek
12-Amethyst

Windchill Library Main Screen

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?

ACCEPTED SOLUTION

Accepted Solutions
avillanueva
22-Sapphire III
(To:fatihsimsek)

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

 

View solution in original post

4 REPLIES 4
avillanueva
22-Sapphire III
(To:fatihsimsek)

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
(To:avillanueva)

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
22-Sapphire III
(To:HelesicPetr)

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 🙂

Announcements

Top Tags