我正在使用 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 要更改??