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: 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
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.
 6-Mar-2003 15:26
User is offline View Users Profile Print this message


Christophe LAMOUR

Posts: 3
Joined: 17-Sep-2002

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 ?
Report this to a Moderator Report this to a Moderator
 6-Mar-2003 15:45
User is offline View Users Profile Print this message


Nandan Banodkar

Posts: 22
Joined: 1-Oct-2002

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)
Report this to a Moderator Report this to a Moderator
 6-Mar-2003 17:00
User is offline View Users Profile Print this message


Mark Phillips

Posts: 40
Joined: 17-Dec-2002

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
Report this to a Moderator Report this to a Moderator
 6-Mar-2003 17:05
User is offline View Users Profile Print this message


Michael Sutherland

Posts: 248
Joined: 13-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 10-Mar-2006 11:08
User is offline View Users Profile Print this message


Peter Seager

Posts: 32
Joined: 10-Feb-2003

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
Report this to a Moderator Report this to a Moderator
 10-Mar-2006 17:37
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 13-Mar-2006 08:55
User is offline View Users Profile Print this message


Peter Seager

Posts: 32
Joined: 10-Feb-2003

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