Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: merging attributes
Topic Summary:
Created On: 4-Sep-2002 10:35
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 12-Sep-2002 10:35
User is offline View Users Profile Print this message


Mary Miller

Posts: 36
Joined: 12-Sep-2002

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

Report this to a Moderator Report this to a Moderator
 16-Sep-2002 15:28
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

[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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.