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: Display new columns
Topic Summary:
Created On: 20-Dec-2002 16:03
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.
Answer This question was answered by Louie Landale, on Thursday, December 26, 2002 4:03 PM

Answer:
Line 2 should read: Column c = column(m, 2). This will return the handle of the EXISTING column #2 (the 3rd column I think) in the module m. Since this line had an error and variable "c" was NOT defined, its no surprise that line 4 had an error, since "c" is not defined.

Consider the following overall approach:
o Delete all existing columns in the current display:
...as per the DXL manual example in "delete(column)".
o Insert(column) the number of times as columns you want in the new view.
o For each column (in order), use your code to set its attributes, widths etc.

I did stuff like this a long time ago, and it was reasonably tricky. You probably want to develop your code in sections, using print statement liberally and examining the current display to insure you get what you want.

- Louie
 20-Dec-2002 16:03
User is offline View Users Profile Print this message


Hong Zhang

Posts: 29
Joined: 12-Sep-2002

Hi everybody,

I am a new comer to DOORS. So forgive me if I asked some silly/simple questions.

I want to create new columns to display some attributes, then save it as a new view. I am stucked in the first part. Here is my code and the error message (in italic)

Module m = current
Column c(m,2) -E- DXL: <Line:9> syntax error
AttrDef ad=find(m,"Created On")
attribute(c,"Created On") <Line:18> incorrect arguments for function (attribute)


How can I work it out? Highly appreciated your help!!!

hong

Report this to a Moderator Report this to a Moderator
 20-Dec-2002 17:36
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Answer Answer
Line 2 should read: Column c = column(m, 2). This will return the handle of the EXISTING column #2 (the 3rd column I think) in the module m. Since this line had an error and variable "c" was NOT defined, its no surprise that line 4 had an error, since "c" is not defined.

Consider the following overall approach:
o Delete all existing columns in the current display:
...as per the DXL manual example in "delete(column)".
o Insert(column) the number of times as columns you want in the new view.
o For each column (in order), use your code to set its attributes, widths etc.

I did stuff like this a long time ago, and it was reasonably tricky. You probably want to develop your code in sections, using print statement liberally and examining the current display to insure you get what you want.

- Louie
Report this to a Moderator Report this to a Moderator
 26-Dec-2002 16:04
User is offline View Users Profile Print this message


Hong Zhang

Posts: 29
Joined: 12-Sep-2002

Louie,

I got it! Thanks a lot!!!

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