Finding the target module associated with a CP module

I would love to have a DXL code method to determine the target formal requirements module from within a Change Proposal module and vice versa.

The mundane solution is to create a module level attribute that I manually populate with the ID of the partner module.

When I invoke the "Submit Change Proposal ..." dialog  from the formal requirements module how does the CP "system" know which CP module is the partner for this requirements module?

thx

 


gBright - Fri Jun 06 13:33:30 EDT 2014

Re: Finding the target module associated with a CP module
kourosh - Fri Jun 06 19:03:44 EDT 2014

Check the parent project of the module. If it contains a "Change Proposal System" folder then open the "Change Proposal Links" link module in that folder and look for a linkset where the source is the module name. When you find that linkset, the target will be the associated CP module.

Re: Finding the target module associated with a CP module
smarti.sj - Mon Jun 09 09:04:59 EDT 2014

We run a script to update the Description of the Proposal Module with the main modules's name.

Or fnCPS_OpenPartner(Module m) will open the CP or main module, you will need #include <standard/cps/partner/partner.inc>