1

我正在使用 Windchill 10.0 M030。在我的 GUI 中,我需要在报告工具栏下拉列表中添加一个自定义按钮。

下图清楚地显示了我的问题

图形用户界面

我已经尝试在 psb-actionmodels.xml 文件中添加相应模型名称下的条目,如下所示

<model name="psbRelatedPartsTreeToolBar">
....
<action name="psbReportsGroupGWT" type="psb" />
      <action name="psbReportsGWT" type="psb" />
      <action name="psbReportMultiLevelCompListGWT" type="psb" />
      <action name="separator" type="separator" />
      <action name="psbReportSingleLevelConsolBOMGWT" type="psb" />
      <action name="psbReportSingleLevelBOMGWT" type="psb" />
      <action name="psbReportSingleLevelBOMWithNotesGWT" type="psb" />
      <action name="separator" type="separator" />
      <action name="psbReportMultiLevelBOMGWT" type="psb" />
      <action name="psbReportMultiLevelBOMWithReplacementsGWT" type="psb" />
      <action name="seperator" type="seperator" />
      <action name="HBOMReportsGWT" type="psb" />
      <action name="psbReportMultiLevelBOMWithAMLAVLGWT" type="psb" />
      <action name="psbReportMultiLevelBOMWithAMLGWT" type="psb" />
      <action name="separator" type="separator" />
      <action name="singleSourceOEMPartsGWT" type="psb" />
      <action name="uniqueManufacturerPartsGWT" type="psb" />
      <action name="separator" type="separator" />
      <action name="changeBaselineReportGWT" type="change" />         
      <action name="exportActionsGWT" type="cat"/>
      <action name="exportCsvGWT" type="cat" />
      <action name="exportHtmlGWT" type="cat" />
      <action name="exportTextGWT" type="cat" />
      <action name="exportXlsGWT" type="cat" />
      <action name="exportXlsxGWT" type="cat" />
      <action name="exportXlsReportGWT" type="cat" />
      <action name="exportXmlGWT" type="cat" />
      <action name="newButton" type="cat" />
   </model>

我在这里添加了名为 newButton 的按钮,并且在 cat-actions.xml 文件中有相应的条目。

但是按钮不在那个列表中。这是正确的方式吗?或者我不知道如何在那边添加按钮。有人建议我在哪些 xml 文件中需要更改,哪些是类文件或rbInfo 要更改??

4

2 回答 2

1

PTC 当前不支持功能区栏自定义。

如果要在此菜单中集成新按钮,则需要对 GWT(Google Web Toolkit)有很好的了解,因为此按钮栏是使用 GXT 库开发的。我不建议这样做,因为您永远不会从 PTC 获得有关此主题的支持。

您添加到 psb-actionmodels.xml 的新按钮应通过右键单击产品结构浏览器出现(在您的屏幕截图中,在 HBOM22 部分)。

在上下文菜单中获取操作通常是一个很好的解决方案。然后您可以自定义该操作可用的对象类型(在 typeBasedActionFilter.properties 配置文件中)

于 2013-03-21T13:12:26.630 回答
0

您必须更改本机类 com.ptc.windchill.mpml.ppb.server.PPBTreeConfigBuilder 在 getToolbarConfigOverrides方法中创建按钮

于 2017-10-06T14:47:37.927 回答