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: Displaying attributes for a table-HELP
Topic Summary: dxl table output
Created On: 5-May-2005 16:42
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.
Answer This question was answered by Louie Landale, on Monday, May 9, 2005 9:05 PM

Answer:
It would be easier to read if you posed DXL using the "Attach Code" which is next to the "Preview" button, when submitting a post.

It looks like you end your "for cell in row" loop, and THEN use variable "cell". My guess is that it only does this for the last cell in the row.

You use for lref in obj <-"*" just so you can open up such modules. Get the full name, then open it if it isn't already open. I think its: Module mod = module(Item FullName); if (null mod) mod = read(FullName, false). Follow such a loop with a "for lnk in obj <- "*" to get at the object that sources the link. oSource = source(lnk).

"source(lref)" returns the name of the Source module of the lref. Since this is followed by a space and then "Proposed Object Text", you are printing the name of the source module (Proposals 1) and then the constant "Proposed Object Text". You want "string ProposedText = oSource."Object Text"", or .. = probeAttr(oSource, "Object Text") incase the inlink is from some non-CPS module.

- Louie
 5-May-2005 16:42
User is offline View Users Profile Print this message


Jobina Johnson

Posts: 55
Joined: 12-Sep-2002

I have incoming links into table cells and want to be able to pull the source object information. I pulling the info from a Change Proposal Module any help with the code would be appreciated

Object rowHead
for rowHead in table current Object do {
Object cell
for cell in row rowHead do {
print cell."Object Text" "\n"
// print identifier cell "\t"

}
Link lnk
LinkRef lr

ModName_ sourceMod

for lr in cell <-"*" do {

sourceMod = source lr

read(fullName(sourceMod), false)

int pp= sourceAbsNo (lr)

string pt = source(lr) "Proposed Ojbect Text"

//print pp

print pt "\n"

}
}

the current code is printing the information from the current table, and printing the source module name and the words Proposed Object Text.

Thanks in advance

-------------------------


jobina.l.johnson@boeing.com
Report this to a Moderator Report this to a Moderator
 5-May-2005 17:26
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
It would be easier to read if you posed DXL using the "Attach Code" which is next to the "Preview" button, when submitting a post.

It looks like you end your "for cell in row" loop, and THEN use variable "cell". My guess is that it only does this for the last cell in the row.

You use for lref in obj <-"*" just so you can open up such modules. Get the full name, then open it if it isn't already open. I think its: Module mod = module(Item FullName); if (null mod) mod = read(FullName, false). Follow such a loop with a "for lnk in obj <- "*" to get at the object that sources the link. oSource = source(lnk).

"source(lref)" returns the name of the Source module of the lref. Since this is followed by a space and then "Proposed Object Text", you are printing the name of the source module (Proposals 1) and then the constant "Proposed Object Text". You want "string ProposedText = oSource."Object Text"", or .. = probeAttr(oSource, "Object Text") incase the inlink is from some non-CPS module.

- 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.