其他 Windchill 功能 > 制造过程管理 > 自定义产品结构浏览器 (PSE) > 创建“需求”选项卡 > 定义 <MenuItem> 元素中所参考的 <ActionDefinition> 元素 > 定义“查看有效性日志”操作的 ActionDefinition 元素
  
定义“查看有效性日志”操作的 ActionDefinition 元素
这将定义“查看有效性日志”操作的 ActionDefinition 元素。
按照上面的详述,以 'ptc.pdm.ProductStructureExplorer' 的应用程序属性值找到子元素为 <LogicContext> 的 <ExplorerElementGroup> 元素。在 LogicContext 元素之后添加如下所示的 ActionDefinition 元素:
<ActionDefinition id="mycom.wnc.exp.ViewEffectivityLogAction"
actionClass="com.ptc.windchill.explorer.structureexplorer.panel
.actions.AssociationUrlAction">
<UrlAction selectionMode="single"
urlBaseName="servlet/TypeBasedIncludeServlet?">
<UrlParameter value="oid={selected_oid}"/>
</UrlAction>
<Import id="ptc.wnc.exp.IsValidForHTMLLaunchMasterOkVAL"/>
</ActionDefinition>
在 <ActionDefinition> 中定义的 id 属性必须与 PDMLinkExplorerMenusForRequirementsTab.xml 中所定义的 ViewEffLogMI 菜单项的已定义导入 id 相匹配。