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: Create new Column via DXL - 2nd question
Topic Summary:
Created On: 7-Apr-2003 11:55
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.
 7-Apr-2003 11:55
User is offline View Users Profile Print this message


Andrea MacGregor

Posts: 3
Joined: 2-Apr-2003

My original question is posted below. One answer I received was to create the column using the wizard and from the column's properties window click on Browse -> Current which will show the code used to create the column. I created the column and did Browse-> Current. With the code that appeared, I selected then copied all of it. I then removed the column I just created. Did Tools -> Edit DXL. When the DXL window appeared, I pasted the script I just copied into the window and tried to run it. It would not run. The "main" part of the program was a function call to a SHOW routine and it passed in a null object. When I set up a loop (over all objects in the module) around the SHOW call, it did not crash but would not produce anything.

Anyone have any ideas?
Thanks in advance,
Andrea
---------------------------------------------------------------

Original Post:

I can do what I want through
Analysis -> Wizard.

To be clear of my needs, I add the following:
By selecting (page order may be incorrect...doing this from memory)
Pg 1: All Modules
Pg 2: Outlinks
Pg 3: Attributes: Object Identifier and Object Text
Pg 4: Depth = 1, Show Headings
Pg 5: Finish

This creates 2 columns containing the object identifier and object text of the target link. If there are no links in a source object, the resulting row is blank.

I want to automate this process so I want to come up with a DXL script that will essentially do the same thing WITHOUT starting the Analysis Wizard.

I have come across the DXL scripts that actually start the wizard (e.g. I can load them into the DXL window and press run to get the wizard to start), but I cannot find/figure out how the code accepts/store the selections.

Any ideas?
Report this to a Moderator Report this to a Moderator
 7-Apr-2003 17:32
User is offline View Users Profile Print this message


Frank Lipski

Posts: 42
Joined: 6-Nov-2002

I not sure I'm folllowing your question.

You can use the approach you oulined (copy and pasting) from an existing column created by the wizard to another column. However, the way the wizard structures the DXL it uses the numeric references to the target (or source) module and the link module names. So chances are that it won't work in a different module. That may explain why you got no output.

When you talk about looping over all the objects in module, that is not appropriate to a layout column. By definition a layout column works on a current object, hence the use of the Show (obj,1) that was discussed in the earlier thread.

I created a set of standard "layout" dxls that provide a somewhat similar function. However, there are clearly constants, that are clearly commented, that allow the user to specify the target (or source) module and the link module. These are entered as strings. An additional set of booleans is defined that allow the user to customize the data displayed and the format of the data. These are saved in the layout area and are available to the users to select from when they create a column that is a layout dxl column.

Frank
Report this to a Moderator Report this to a Moderator
 7-Apr-2003 21:18
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

Andrea,

Here's a script which does what you're asking (I think).

I ran the wizard and saved the display DXL code, then I wrapped this script around it so when it is run in the current Module, a new view will be created. This view extends the Standard View to also contain the display DXL which shows out links.

If you wish to modify the view to include additional columns, use the insertColumn() function (which has been overloaded to allow for multiple types of columns). Just follow the example I have given.

-Dennis Lockshine
Lockheed Martin NE&SS
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.