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: DXL Layout - pointing all views to single instance of script.
Topic Summary:
Created On: 22-May-2003 05:40
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.
 22-May-2003 05:40
User is offline View Users Profile Print this message


Paul Miller

Posts: 376
Joined: 2-Oct-2002

Hi,

We have many views which use the same DXL Layout script.

Rather than having multiple copies of the same DXL Layout script across each of the views, we insert a single #include line into the column DXL Layout box which points to a single instance of the DXL Layout script stored on a network drive. This is handy, because you can centrally deliver DXL layout scripts and only have to apply changes to the one script (all views will pick up the change).

The problem is that when a project is archived and restored (or partitioned) onto a laptop so that it can be taken to a customer site, all of the views with columns that point to the central DXL Layout script fail when the laptop is not connected to the network.

Can anyone think of a DXL method or hack that can apply a conditional branch that will use an alternative secondary #include path should the primary one not be available due to disconnection from the network?

The secondary #include would default to pointing to a location on the C: drive where a copy of the DXL layout scripts can be temporarily located.


-------------------------
Paul Miller
Specification Practices Specialist,
EuroCyber,
Melbourne, Australia.
Mobile: +61 (0)418 135 103
Web Site: http://www.eurocyber.biz
E-mail: miller@eurocyber.biz">pmiller@eurocyber.biz
Report this to a Moderator Report this to a Moderator
 22-May-2003 13:49
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

Paul-

I think this method will accomplish what you ask. The first step is to use Stat to test if the DXL file in question exists, either the file on your network drive or the one on the C drive. Make sure to check both files before you attempt the next step! For information on Stat, see the command regular(function) in the DXL Help index.

Since you will be using this within display DXL which executes many times in a view, don't forget to clean up after yourself by deleting the Stat pointer before you finish, it behaves much like a Skip pointer and will use large amounts of memory if given the chance.

Next, use this little known expression to execute it from within your code:

eval_ "#include <" name ">"

Where name would be replaced by the full path location of your script.

Hope it helps!

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