![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() |
|
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? |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Create new Column via DXL - 2nd question
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.