![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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 | |
![]() |
|
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 ![]() |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Displaying attributes for a table-HELP
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.