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: 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
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 Pranav Chandrasekhar, on Monday, May 5, 2008 8:41 PM

Answer:
Thank you very much!!!! Works like a charm now. I appreciate your prompt help.

Regards,

Pranav
 4-May-2008 23:16
User is offline View Users Profile Print this message


Pranav Chandrasekhar

Posts: 101
Joined: 16-May-2006

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
Report this to a Moderator Report this to a Moderator
 5-May-2008 11:16
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

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
Report this to a Moderator Report this to a Moderator
 5-May-2008 14:37
User is offline View Users Profile Print this message


Pranav Chandrasekhar

Posts: 101
Joined: 16-May-2006

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
Report this to a Moderator Report this to a Moderator
 5-May-2008 16:19
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

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
Report this to a Moderator Report this to a Moderator
 5-May-2008 20:41
User is offline View Users Profile Print this message


Pranav Chandrasekhar

Posts: 101
Joined: 16-May-2006

Answer Answer
Thank you very much!!!! Works like a charm now. I appreciate your prompt help.

Regards,

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