![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: merging attributes Topic Summary: Created On: 4-Sep-2002 10:35 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hello,
I was wondering if anyone has ever merged two attributes in two different modules. This is what happened, I have link information stored in an attribute in one module. I have different link information stored in an attribute in a second module. However, I need to figure out how to merge the information into one attribute (I think). So, when I restore links, I will be able to re-establish all the links. The problem was not all of our links were captured in an older version of the module. So, I am trying to figure out how to merge the old link information with the new link information. Thanks, Mary |
|
![]() |
|
![]() |
|
[1] I don't think I understand your problem correctly, and [2] I'm writing this DXL on the fly and didn't try to compile it. Perhaps it may show some insight to your problem.
Module m1, m2 string NameAD = "whatever" int AbsNo Object o1, o2 string value1, value2 // this presume module 2 was created originally as a "copy" or restored archive of module 1; and // thus the absolute numbers of objects generally coincide. m1 = open it Exclusive, show all object m2 = open it Read, show all objects for o1 in m1 do { AbsNo = o1."Absolute Number" current = m2 o2 = object(AbsNo) // new v6 function, finds the absolute number if (!null o2) { // merge: value1 = o1.NameAD value2 = o2.NameAD o1.NameAD = value1 "\n" value2 } else { // no corresponding object in 2nd module } } // end object loop - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
merging attributes
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.