![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: How to get the current column title in a Layout DXL script ? Topic Summary: Created On: 6-Mar-2003 15:26 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'd like to get the current column title in a Layout DXL script (depending of the title value, the DXL script behaviour will be different).
How to do that ? |
|
![]() |
|
![]() |
|
You could use something like this:
Column c = column(int n) //nth column starting from 0 string sTitle = title(c) Only you would need to know the position of the column i.e. n ------------------------- Nandan Banodkar (nandanbanodkar@hotmail.com) |
|
![]() |
|
![]() |
|
Christophe,
Expanding on what Nandan wrote, try somethingl like the attached script. Mark PS It won't work unless the first line of the script and the variable topLineOfScript differ. ------------------------- Mark Phillips mark.phillips@swri.org |
|
![]() |
|
![]() |
|
Christophe,
Interesting question. I know of no direct way that a Layout DXL script can get a reference to the column it is attached to. The issue has never come up before. A Layout DXL might be able to recognize itself by iterating through the columns (for c in m do) and checking the dxl( c ) of each column to see if it finds itself. If so, it would then know which column it is in, and then be able to get the title of the column. Update: Mark beat me to the punch with the same idea! ------------------------- Michael Sutherland michael@galactic-solutions.com http://galactic-solutions.com Edited: 6-Mar-2003 at 17:07 by Michael Sutherland |
|
![]() |
|
![]() |
|
I was looking through the old topics because this question has cropped up again for me. Has anyone found another answer since 2003, preferably one that works in DOORS 7.1? Mark/Michael's idea does not work for me because all the columns I am interested in have the same dxl script. I have several scripts that work with Attribute DXL, but not Layout DXL, and find it very convenient to maintain just one script that can be loaded into many columns and adjusts itself to each column. In the present case there is possibly a known DOORS defect that would prevent printing the output of Attribute DXL.
Edited: 10-Mar-2006 at 11:25 by Peter Seager |
|
![]() |
|
![]() |
|
Don't think you can do it. I awkwardly "resolved" this issue a few years ago with a layout that was intended to be modified after it was inserted into a column. Went something like attached:
Thus, instead of the user cleverly setting the column title to mean the IntendedFunctionality, he must edit the DXL as he creates the column. - Louie |
|
![]() |
|
![]() |
|
Thanks Louie. That's just the solution I have adopted, hoping it was just an interim solution. The only other way I can think of is to put in each column just the code to define the function ID and an include statement and then put all the rest of the code in the included file. I don't like using included files because it can lead to problems if a project manager puts the included file somewhere on the network where the some people, including the Database manager, can't access it and makes the view that includes the include script the default view.
Has anyone put an attribute dxl attribute in a column and printed it in book format, does it still overun the footer? According to the known defects it still does but Telelogic say it was fixed at patch 3 and have asked me to try it. Peter |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.