![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Opening all linked modules from a given formal module Topic Summary: Created On: 4-May-2008 23:16 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Thank you very much!!!! Works like a charm now. I appreciate your prompt help. Regards, Pranav | |
![]() |
|
Hi All,
I am not too sure if this question has been addressed elsewhere. I am trying to run a DXL script from within a module. I want the script to open all modules linked to the current module via an inLink. Any ideas on how I may accomplish this? Any input with regard to this will be helpful. Thank you in advance. Regards, Pranav |
|
![]() |
|
![]() |
|
Did you want to open them in background or open in foreground.
If you want opened in background then use this wizard in stndrd view to list attributes from inlinked module -- If you wanted opened in foreground modify the script created by wizard to open in foreground. Note: you may have to cursor from top to bottom of the formal module to open all the linked modules. Or you can generalize the wizard created layout dxl to a regular dxl that loops thru each object opening linked modules. Edited: 5-May-2008 at 14:29 by ron lewis |
|
![]() |
|
![]() |
|
Essentially, what I am trying to do is examine the source objects of each inLink to objects in the current module via a DXL script. The "for" loop examining inLinks does not get trigged unless the modules with the source objects of the inLinks are actually open. I think they need to be opened in the foreground but I am not too sure. For now, I would like to open them in the foreground. I will try the method you suggested and will let you know if it works well. Thank you for your response.
Regards, Pranav |
|
![]() |
|
![]() |
|
As you observed, the "Link" variables are of no use as long as the source module is not open. However, in those cases, you can use the "LinkRef" variables and the associated perms for getting e.g. the name of the source module, which you can then in turn use to open the module. The attached routine returns the (full) name of the source module, hence, something like
LinkRef lr Object obj = current for lr in obj <- "*" do { read(sourceMod(lr, true), false) } would open all source modules linked to the current module. Cheers, Peter |
|
![]() |
|
![]() |
|
Thank you very much!!!! Works like a charm now. I appreciate your prompt help.
Regards, Pranav |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.