General InformationThis opening ID is invoked every time the traceability matrix is generated. This opening ID is used to add commands in the context menu displayed in the traceability matrix. The table below provides you with information related to the definition of the opening ID.
Input ObjectsInput objects must be of the following type: Context Object Parameters
SampleThe following sample adds commands in the context menu of the traceability matrix. let MenuList(List) let CurrentCommand(String) let bIsProjected(Boolean) set bIsProjected = Parameters->GetAttributeBoolean ("IsProjected") set MenuList = Parameters->GetAttributeObject ("MenuCmdList") MenuList.RemoveAll() if(bIsProjected == true) { CurrentCommand = "Delete" MenuList.Append(CurrentCommand) CurrentCommand = "CATPLMEditorImplementConnectionCmdHdr" MenuList.Append(CurrentCommand) CurrentCommand = "CATPLMEditorDisplayImplementRelationCmdHdr" MenuList.Append(CurrentCommand) Parameters->SetAttributeObject("MenuCmdList", MenuList) } else { CurrentCommand = "CATPLMEditorImplementConnectionCmdHdr" MenuList.Append(CurrentCommand) Parameters->SetAttributeObject("MenuCmdList", MenuList) } |