Engineering Requirements Management

 View Only
Expand all | Collapse all

How to iterate on outgoing links of a baselined module

  • 1.  How to iterate on outgoing links of a baselined module

    Posted Tue March 23, 2021 02:54 PM

    I need to iterate on all outgoing links of the objets of a baselined module.

    I know how to do that on the current module but it does not work when I load a baselined module.

    This code only works if baseline = current :

    Module m = current Module mLoad = null Object obj = null Link lnk = null int count = 0 mLoad = load(m,baseline(1,0,"test"),false) for obj in mLoad do { for lnk in obj->"*" do { count ++ } print count }

    Can you help me to fix it ?





    #SupportMigration
    #EngineeringRequirementsManagement
    #DOORS
    #Sustainability
    #Support


  • 2.  RE: How to iterate on outgoing links of a baselined module

    Posted Wed March 24, 2021 12:03 AM

    try changing

    for lnk in obj->"*" do

    to

    for lnk in all obj->"*" do





    #EngineeringRequirementsManagement
    #DOORS
    #Sustainability
    #Support
    #SupportMigration


  • 3.  RE: How to iterate on outgoing links of a baselined module

    Posted Mon March 29, 2021 07:09 AM